Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
file_system.cpp File Reference
#include "precompiled.h"
#include "lib/debug.h"
#include "lib/file/file_system.h"
#include "lib/sysdep/filesystem.h"
#include <boost/filesystem.hpp>
#include <boost/version.hpp>
#include <memory>
Include dependency graph for file_system.cpp:

Classes

struct  DirDeleter
 

Functions

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

Function Documentation

◆ CopyFile()

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

◆ CreateDirectories()

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

◆ DeleteDirectory()

Status DeleteDirectory ( const OsPath path)

◆ 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 pPtrInfo 
)

◆ RenameFile()

Status RenameFile ( const OsPath path,
const OsPath newPath 
)