27 #ifndef INCLUDED_FILE_SYSTEM 28 #define INCLUDED_FILE_SYSTEM 50 : name(name), size(size), mtime(mtime)
93 #endif // #ifndef INCLUDED_FILE_SYSTEM time_t MTime() const
Definition: file_system.h:64
CFileInfo(const OsPath &name, off_t size, time_t mtime)
Definition: file_system.h:49
Status RenameFile(const OsPath &path, const OsPath &newPath)
Definition: file_system.cpp:194
const OsPath & Name() const
Definition: file_system.h:54
off_t Size() const
Definition: file_system.h:59
bool DirectoryExists(const OsPath &path)
Definition: file_system.cpp:36
OsPath name
Definition: file_system.h:70
uint64_t u64
Definition: types.h:40
Status GetDirectoryEntries(const OsPath &path, CFileInfos *files, DirectoryNames *subdirectoryNames)
Definition: file_system.cpp:86
__int64 off_t
Definition: wposix_types.h:91
Status DeleteDirectory(const OsPath &dirPath)
Definition: file_system.cpp:166
off_t size
Definition: file_system.h:71
CFileInfo()
Definition: file_system.h:45
i64 Status
Error handling system.
Definition: status.h:169
bool FileExists(const OsPath &pathname)
Definition: file_system.cpp:48
time_t mtime
Definition: file_system.h:72
Status GetFileInfo(const OsPath &pathname, CFileInfo *fileInfo)
Definition: file_system.cpp:64
std::vector< OsPath > DirectoryNames
Definition: file_system.h:78
Status CreateDirectories(const OsPath &path, mode_t mode, bool breakpoint=true)
Definition: file_system.cpp:132
u64 FileSize(const OsPath &pathname)
Definition: file_system.cpp:56
std::vector< CFileInfo > CFileInfos
Definition: file_system.h:77
Definition: file_system.h:42
Status CopyFile(const OsPath &path, const OsPath &newPath, bool override_if_exists=false)
Definition: file_system.cpp:213