27#ifndef INCLUDED_FILE_SYSTEM
28#define INCLUDED_FILE_SYSTEM
Definition: file_system.h:43
CFileInfo()
Definition: file_system.h:45
off_t size
Definition: file_system.h:71
CFileInfo(const OsPath &name, off_t size, time_t mtime)
Definition: file_system.h:49
const OsPath & Name() const
Definition: file_system.h:54
time_t MTime() const
Definition: file_system.h:64
off_t Size() const
Definition: file_system.h:59
OsPath name
Definition: file_system.h:70
time_t mtime
Definition: file_system.h:72
Status RenameFile(const OsPath &path, const OsPath &newPath)
Definition: file_system.cpp:206
bool DirectoryExists(const OsPath &path)
Definition: file_system.cpp:38
Status CreateDirectories(const OsPath &path, mode_t mode, bool breakpoint=true)
Definition: file_system.cpp:144
Status CopyFile(const OsPath &path, const OsPath &newPath, bool override_if_exists=false)
Definition: file_system.cpp:225
std::vector< OsPath > DirectoryNames
Definition: file_system.h:78
u64 FileSize(const OsPath &pathname)
Definition: file_system.cpp:58
Status GetFileInfo(const OsPath &pathname, CFileInfo *fileInfo)
Definition: file_system.cpp:66
std::vector< CFileInfo > CFileInfos
Definition: file_system.h:77
Status DeleteDirectory(const OsPath &dirPath)
Definition: file_system.cpp:178
Status GetDirectoryEntries(const OsPath &path, CFileInfos *files, DirectoryNames *subdirectoryNames)
Definition: file_system.cpp:88
bool FileExists(const OsPath &pathname)
Definition: file_system.cpp:50
i64 Status
Error handling system.
Definition: status.h:173
uint64_t u64
Definition: types.h:40
__int64 off_t
Definition: wposix_types.h:91