29 #include "nomlib/system/File.hpp"
37 #if defined (NOM_PLATFORM_OSX) || defined (NOM_PLATFORM_LINUX)
39 this->file = std::shared_ptr<IFile> (
new UnixFile() );
41 #elif defined (NOM_PLATFORM_WINDOWS)
43 this->file = std::shared_ptr<IFile> (
new WinFile() );
57 extension = this->file->extension ( file );
64 return this->file->size ( file_path );
69 return this->file->exists ( file_path );
72 const std::string
File::path (
const std::string& dir_path )
74 return this->file->path ( dir_path );
79 return this->file->currentPath();
84 if ( this->file->set_path ( path ) == false )
return false;
bool set_path(const std::string &path)
chdir(2) wrapper
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)