42 class FileSystem_Impl;
43 class FileSystemProvider;
44 class DirectoryListing;
116 unsigned int flags = 0)
const;
149 std::shared_ptr<FileSystem_Impl> impl;
DirectoryListing get_directory_listing(const std::string &path_rel)
Return directory listing for path.
bool is_null() const
Returns true if the file system is null.
Definition: file_system.h:75
Virtual File System (VFS) directory listing class.
Definition: directory_listing.h:41
I/O Device interface.
Definition: iodevice.h:50
void unmount(const std::string &mount_point)
Unmount a file system.
std::string get_path() const
Returns a path to the file source for this file system.
bool is_mount(const std::string &mount_point)
Returns true if a path is a mount point.
FileSystemProvider * get_provider()
Returns the file source for this file system.
std::string get_identifier() const
Get the identifier of this file source.
Virtual File System (VFS).
Definition: file_system.h:47
Generic read access.
Definition: file.h:67
Open existing file. Fails if it does not exist.
Definition: file.h:99
All other sharing flags combined.
Definition: file.h:89
FileSystem()
Constructs a file system.
IODevice open_file(const std::string &filename, File::OpenMode mode=File::open_existing, unsigned int access=File::access_read, unsigned int share=File::share_all, unsigned int flags=0) const
Opens a file.
bool has_file(const std::string &filename)
Return true if the root of the filesystem contains the specified file.
OpenMode
File opening modes.
Definition: file.h:93
Virtual File System (VFS) file source.
Definition: file_system_provider.h:45
bool has_directory(const std::string &directory)
Return true if the root of the filesystem contains the specified directory.
void mount(const std::string &mount_point, FileSystem fs)
Mounts a file system at mount point.