![]() |
nomlib
|
Platform-agnostic file system interface. More...
#include <File.hpp>
Public Member Functions | |
| std::string | extension (const std::string &filename) const |
| Re-implements nom::IFile::extension. | |
| int32 | size (const std::string &file_path) const |
| Re-implements nom::IFile::size. | |
| bool | is_dir (const std::string &file_path) const |
| Test for the existence of a directory. | |
| bool | is_file (const std::string &file_path) const |
| bool | exists (const std::string &file_path) const |
| Re-implements nom::IFile::exists. | |
| std::string | path (const std::string &dir_path) const |
| Platform-specific implementation of IFile::path. | |
| std::string | currentPath () const |
| Re-implements nom::IFile::currentPath. | |
| bool | set_path (const std::string &path) const |
| Re-implements nom::IFile::set_path. | |
| std::string | basename (const std::string &filename) const |
| Re-implements nom::IFile::basename. | |
| std::vector< std::string > | read_dir (const std::string &dir_path) const |
| std::string | resource_path (const std::string &identifier="\0") const |
| std::string | user_documents_path () const |
| std::string | user_app_support_path () const |
| std::string | user_home_path () const |
| std::string | system_path () const |
| bool | mkdir (const std::string &path) const |
| bool | recursive_mkdir (const std::string &path) const |
| bool | rmdir (const std::string &path) const |
| bool | mkfile (const std::string &path) const |
| std::string | env (const std::string &path) const |
| nom::size_type | num_files (const std::string &path) const |
Private Attributes | |
| std::unique_ptr< IFile > | file |
Platform-agnostic file system interface.
| std::string nom::File::env | ( | const std::string & | path | ) | const |
| bool nom::File::mkdir | ( | const std::string & | path | ) | const |
| bool nom::File::mkfile | ( | const std::string & | path | ) | const |
| nom::size_type nom::File::num_files | ( | const std::string & | path | ) | const |
| std::string nom::File::path | ( | const std::string & | dir_path | ) | const |
Platform-specific implementation of IFile::path.
| bool nom::File::recursive_mkdir | ( | const std::string & | path | ) | const |
| bool nom::File::rmdir | ( | const std::string & | path | ) | const |