![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"#include "vfs_lookup.h"#include "lib/debug.h"#include "lib/file/common/real_directory.h"#include "lib/file/file.h"#include "lib/file/file_system.h"#include "lib/file/vfs/vfs.h"#include "lib/file/vfs/vfs_populate.h"#include "lib/file/vfs/vfs_tree.h"#include "lib/os_path.h"#include "lib/path.h"#include "lib/posix/posix_filesystem.h"#include <filesystem>#include <string>#include <system_error>
Functions | |
| static Status | CreateDirectory (const OsPath &dirpath) |
| Status | vfs_Lookup (const VfsPath &pathname, VfsDirectory *startDirectory, VfsDirectory *&directory, VfsFile **pfile, size_t flags) |
| Resolve a pathname. More... | |
| Status vfs_Lookup | ( | const VfsPath & | pathname, |
| VfsDirectory * | startDirectory, | ||
| VfsDirectory *& | directory, | ||
| VfsFile ** | pfile, | ||
| size_t | flags = 0 |
||
| ) |
Resolve a pathname.
| pathname | |
| startDirectory | VfsStartDirectory. |
| directory | is set to the last directory component that is encountered. |
| pfile | File is set to 0 if there is no name component, otherwise the corresponding file. |
| flags |
to allow noiseless file-existence queries, this does not raise warnings.