|
| VFS (size_t cacheSize) |
|
virtual Status | Mount (const VfsPath &mountPoint, const OsPath &path, size_t flags, size_t priority) |
| mount a directory into the VFS. More...
|
|
virtual Status | GetFileInfo (const VfsPath &pathname, CFileInfo *pfileInfo) const |
| Retrieve information about a file (similar to POSIX stat). More...
|
|
virtual Status | GetFilePriority (const VfsPath &pathname, size_t *ppriority) const |
| Retrieve mount priority for a file. More...
|
|
virtual Status | GetDirectoryEntries (const VfsPath &path, CFileInfos *fileInfos, DirectoryNames *subdirectoryNames) const |
| Retrieve lists of all files and subdirectories in a directory. More...
|
|
virtual Status | CreateFile (const VfsPath &pathname, const shared_ptr< u8 > &fileContents, size_t size) |
| Create a file with the given contents. More...
|
|
virtual Status | ReplaceFile (const VfsPath &pathname, const shared_ptr< u8 > &fileContents, size_t size) |
| Replace a file with the given contents. More...
|
|
virtual Status | LoadFile (const VfsPath &pathname, shared_ptr< u8 > &fileContents, size_t &size) |
| Read an entire file into memory. More...
|
|
virtual std::wstring | TextRepresentation () const |
|
virtual Status | GetRealPath (const VfsPath &pathname, OsPath &realPathname) |
| retrieve the real (POSIX) pathname underlying a VFS file. More...
|
|
virtual Status | GetDirectoryRealPath (const VfsPath &pathname, OsPath &realPathname) |
| retrieve the real (POSIX) pathname underlying a VFS directory. More...
|
|
virtual Status | GetVirtualPath (const OsPath &realPathname, VfsPath &pathname) |
| retrieve the VFS pathname that corresponds to a real file. More...
|
|
virtual Status | RemoveFile (const VfsPath &pathname) |
| remove file from the virtual directory listing and evict its data from the cache. More...
|
|
virtual Status | RepopulateDirectory (const VfsPath &path) |
| request the directory be re-populated when it is next accessed. More...
|
|
virtual void | Clear () |
| empty the contents of the filesystem. More...
|
|
virtual | ~IVFS () |
|
Definition at line 52 of file vfs.cpp.
virtual Status VFS::Mount |
( |
const VfsPath & |
mountPoint, |
|
|
const OsPath & |
path, |
|
|
size_t |
flags, |
|
|
size_t |
priority |
|
) |
| |
|
inlinevirtual |
mount a directory into the VFS.
- Parameters
-
mountPoint | (will be created if it does not already exist) |
path | real directory path |
flags | |
priority | |
- Returns
- Status.
if files are encountered that already exist in the VFS (sub)directories, the most recent / highest priority/precedence version is preferred.
if files with archive extensions are seen, their contents are added as well.
Implements IVFS.
Definition at line 61 of file vfs.cpp.