Pyrogenesis  trunk
Enumerations | Functions
vfs_lookup.h File Reference
#include "lib/file/vfs/vfs_path.h"
Include dependency graph for vfs_lookup.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  VfsLookupFlags { VFS_LOOKUP_ADD = 1, VFS_LOOKUP_SKIP_POPULATE = 2, VFS_LOOKUP_REAL_PATH = 4 }
 

Functions

Status vfs_Lookup (const VfsPath &pathname, VfsDirectory *startDirectory, VfsDirectory *&directory, VfsFile **pfile, size_t flags=0)
 Resolve a pathname. More...
 

Enumeration Type Documentation

◆ VfsLookupFlags

Enumerator
VFS_LOOKUP_ADD 
VFS_LOOKUP_SKIP_POPULATE 
VFS_LOOKUP_REAL_PATH 

Function Documentation

◆ vfs_Lookup()

Status vfs_Lookup ( const VfsPath pathname,
VfsDirectory startDirectory,
VfsDirectory *&  directory,
VfsFile **  pfile,
size_t  flags = 0 
)

Resolve a pathname.

Parameters
pathname
startDirectoryVfsStartDirectory.
directoryis set to the last directory component that is encountered.
pfileFile is set to 0 if there is no name component, otherwise the corresponding file.
flags
See also
VfsLookupFlags.
Returns
Status (INFO::OK if all components in pathname exist).

to allow noiseless file-existence queries, this does not raise warnings.