27#ifndef INCLUDED_VFS_UTIL
28#define INCLUDED_VFS_UTIL
Definition: file_system.h:43
Definition: pch_boost.h:51
Definition: vfs_util.cpp:39
DirFlags
Definition: vfs_util.h:64
@ DIR_RECURSIVE
Definition: vfs_util.h:65
Status GetPathnames(const PIVFS &fs, const VfsPath &path, const wchar_t *filter, VfsPaths &pathnames)
Definition: vfs_util.cpp:41
void NextNumberedFilename(const PIVFS &fs, const VfsPath &pathnameFormat, size_t &nextNumber, VfsPath &nextPathname)
Determine the next available pathname with a given format.
Definition: vfs_util.cpp:99
Status ForEachFile(const PIVFS &fs, const VfsPath &startPath, FileCallback cb, uintptr_t cbData, const wchar_t *pattern, size_t flags, DirCallback dircb, uintptr_t dircbData)
call back for each file in a directory tree, and optionally each directory.
Definition: vfs_util.cpp:58
Status(* DirCallback)(const VfsPath &pathname, const uintptr_t cbData)
called for directories in a directory.
Definition: vfs_util.h:61
Status(* FileCallback)(const VfsPath &pathname, const CFileInfo &fileInfo, const uintptr_t cbData)
called for files in a directory.
Definition: vfs_util.h:49
i64 Status
Error handling system.
Definition: status.h:173
std::shared_ptr< IVFS > PIVFS
Definition: vfs.h:220
std::vector< VfsPath > VfsPaths
Definition: vfs_path.h:44