29 #ifndef NOMLIB_FILE_HEADERS
30 #define NOMLIB_FILE_HEADERS
37 #include "nomlib/config.hpp"
38 #include "nomlib/system/IFile.hpp"
40 #if defined ( NOM_PLATFORM_OSX ) || defined ( NOM_PLATFORM_LINUX )
42 #include "nomlib/system/unix/UnixFile.hpp"
44 #elif defined ( NOM_PLATFORM_WINDOWS )
46 #include "nomlib/system/windows/WinFile.hpp"
63 const std::string
extension (
const std::string& file );
68 int32
size (
const std::string& file_path );
72 bool exists (
const std::string& file_path );
79 const std::string
path (
const std::string& dir_path );
87 bool set_path (
const std::string& path );
90 std::shared_ptr<IFile> file;
96 #endif // include guard
bool set_path(const std::string &path)
chdir(2) wrapper
Platform-agnostic file system interface.
bool exists(const std::string &file_path)
int32 size(const std::string &file_path)
const std::string currentPath(void)
const std::string path(const std::string &dir_path)
const std::string extension(const std::string &file)