Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
vfs_lookup.cpp File Reference
#include "precompiled.h"
#include "lib/file/vfs/vfs_lookup.h"
#include "lib/external_libraries/suppress_boost_warnings.h"
#include "lib/sysdep/filesystem.h"
#include "lib/file/file.h"
#include "lib/file/vfs/vfs.h"
#include "lib/file/vfs/vfs_tree.h"
#include "lib/file/vfs/vfs_populate.h"
#include "lib/timer.h"

Go to the source code of this file.

Functions

static Status CreateDirectory (const OsPath &path)
 
Status vfs_Lookup (const VfsPath &pathname, VfsDirectory *startDirectory, VfsDirectory *&directory, VfsFile **pfile, size_t flags)
 Resolve a pathname. More...
 

Function Documentation

static Status CreateDirectory ( const OsPath path)
static

Definition at line 41 of file vfs_lookup.cpp.

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.

Definition at line 75 of file vfs_lookup.cpp.