Pyrogenesis  trunk
Classes | Typedefs | Functions
file_system.h File Reference
#include "lib/os_path.h"
#include "lib/posix/posix_filesystem.h"
#include <vector>
Include dependency graph for file_system.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CFileInfo
 

Typedefs

typedef std::vector< CFileInfoCFileInfos
 
typedef std::vector< OsPathDirectoryNames
 

Functions

bool DirectoryExists (const OsPath &path)
 
bool FileExists (const OsPath &pathname)
 
u64 FileSize (const OsPath &pathname)
 
Status GetFileInfo (const OsPath &pathname, CFileInfo *fileInfo)
 
Status GetDirectoryEntries (const OsPath &path, CFileInfos *files, DirectoryNames *subdirectoryNames)
 
Status CreateDirectories (const OsPath &path, mode_t mode, bool breakpoint=true)
 
Status DeleteDirectory (const OsPath &dirPath)
 
Status CopyFile (const OsPath &path, const OsPath &newPath, bool override_if_exists=false)
 
Status RenameFile (const OsPath &path, const OsPath &newPath)
 

Typedef Documentation

◆ CFileInfos

typedef std::vector<CFileInfo> CFileInfos

◆ DirectoryNames

typedef std::vector<OsPath> DirectoryNames

Function Documentation

◆ CopyFile()

Status CopyFile ( const OsPath path,
const OsPath newPath,
bool  override_if_exists = false 
)

◆ CreateDirectories()

Status CreateDirectories ( const OsPath path,
mode_t  mode,
bool  breakpoint = true 
)

◆ DeleteDirectory()

Status DeleteDirectory ( const OsPath dirPath)

◆ DirectoryExists()

bool DirectoryExists ( const OsPath path)

◆ FileExists()

bool FileExists ( const OsPath pathname)

◆ FileSize()

u64 FileSize ( const OsPath pathname)

◆ GetDirectoryEntries()

Status GetDirectoryEntries ( const OsPath path,
CFileInfos files,
DirectoryNames subdirectoryNames 
)

◆ GetFileInfo()

Status GetFileInfo ( const OsPath pathname,
CFileInfo fileInfo 
)

◆ RenameFile()

Status RenameFile ( const OsPath path,
const OsPath newPath 
)