Platform-agnostic file system interface.
More...
#include <File.hpp>
|
| const std::string | extension (const std::string &file) |
| |
| int32 | size (const std::string &file_path) |
| |
| bool | exists (const std::string &file_path) |
| |
| const std::string | path (const std::string &dir_path) |
| |
| const std::string | currentPath (void) |
| |
|
bool | set_path (const std::string &path) |
| | chdir(2) wrapper
|
| |
|
|
std::shared_ptr< IFile > | file |
| |
Platform-agnostic file system interface.
Definition at line 53 of file File.hpp.
| const std::string nom::File::currentPath |
( |
void |
| ) |
|
getcwd(3) wrapper
Returned path is arbitrarily limited to 1024 characters.
Definition at line 77 of file File.cpp.
| bool nom::File::exists |
( |
const std::string & |
file_path | ) |
|
Uses stat(2) to determine if the input file exists
Definition at line 67 of file File.cpp.
| const std::string nom::File::extension |
( |
const std::string & |
file | ) |
|
Returns the file extension of the input file path
Returns a null terminated string on err
Definition at line 53 of file File.cpp.
| const std::string nom::File::path |
( |
const std::string & |
dir_path | ) |
|
dirname(3) wrapper
Extract the directory portion of a pathname
dir_path is arbitrarily limited to 1024 characters.
Definition at line 72 of file File.cpp.
| int32 nom::File::size |
( |
const std::string & |
file_path | ) |
|
Uses stat(2) to determine input file size (in bytes)
-1 on err
Definition at line 62 of file File.cpp.
The documentation for this class was generated from the following files:
- /Users/jeff/Projects/hax/nomlib.git/include/nomlib/system/File.hpp
- system/File.cpp