22 #ifndef UTILS_VIRTFSDIR_H
23 #define UTILS_VIRTFSDIR_H
42 const std::string &filename,
45 std::string filename);
47 const std::string &filename);
49 const std::string &filename);
66 const std::string &dirName,
80 std::string &realDir);
81 bool mkdir(std::string dirName);
82 bool remove(std::string filename);
86 const uint32_t objSize,
87 const uint32_t objCount);
90 const uint32_t objSize,
91 const uint32_t objCount);
File * openRead(FsEntry *const entry, std::string filename)
const char * getBaseDir()
File * openAppend(FsEntry *const entry, const std::string &filename)
bool isSymbolicLink(std::string name)
bool exists(FsEntry *const entry, std::string fileName, std::string dirName)
int close(File *const file)
int64_t fileLength(File *const file)
bool setWriteDir(std::string newDir)
void freeList(List *const handle)
File * openInternal(FsEntry *const entry, const std::string &filename, const char *mode)
int eof(File *const file)
void getFilesWithDir(FsEntry *const entry, const std::string &dirName, StringVect &names)
File * openWrite(FsEntry *const entry, const std::string &filename)
int64_t read(File *const file, void *const buffer, const uint32_t objSize, const uint32_t objCount)
bool getRealDir(FsEntry *const entry, std::string filename, std::string dirName, std::string &realDir)
const char * getUserDir()
void getDirs(FsEntry *const entry, std::string dirName, StringVect &names)
const char * loadFile(FsEntry *const entry, std::string filename, int &fileSize)
int seek(File *const file, const uint64_t pos)
void init(const std::string &name)
void permitLinks(const bool val)
bool isDirectory(FsEntry *const entry, std::string dirName, bool &isDirFlag)
bool remove(std::string filename)
void getFiles(FsEntry *const entry, std::string dirName, StringVect &names)
void enumerate(FsEntry *const entry, std::string dirName, StringVect &names)
bool mkdir(std::string dirname)
void initFuncs(FsFuncs *const ptr)
int64_t tell(File *const file)
int64_t write(File *const file, const void *const buffer, const uint32_t objSize, const uint32_t objCount)
std::vector< std::string > StringVect