|
|
static std::string | getBaseName (const std::string &fullpath) throw () |
| |
|
static std::string | getDirName (const std::string &fullpath) throw () |
| |
|
static std::string | getRealPath (const std::string &fullpath) throw (FileException) |
| |
|
static std::vector< std::string > | getDirectory (const std::string &path, const std::string ®ex=any, const std::set< uint8_t > &types=all) throw (FileException) |
| |
|
static std::string | read (const std::string &fullpath, size_t limit=0, std::ios_base::openmode mode=std::ios_base::in) throw (FileException) |
| |
|
static std::string | readline (const std::string &fullpath, char delim= '\n', std::ios_base::openmode mode=std::ios_base::in) throw (FileException) |
| |
|
static std::vector< std::string > | readlines (const std::string &fullpath, size_t limit=0, char delim= '\n', std::ios_base::openmode mode=std::ios_base::in) throw (FileException) |
| |
|
static void | write (const std::string &fullpath, const std::string &data, std::ios_base::openmode mode=std::ios_base::out) throw (FileException) |
| |
|
static bool | exists (const std::string &fullpath, bool followSymlink=true) throw () |
| |
|
static bool | isReadable (const std::string &fullpath) throw () |
| |
|
static bool | isRegularFile (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static bool | isDirectory (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static bool | isCharacterDevice (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static bool | isBlockDevice (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static bool | isFIFO (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static bool | isSymLink (const std::string &fullpath) throw (FileException) |
| |
|
static bool | isSocket (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static uid_t | getUID (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static gid_t | getGID (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static int64_t | getSize (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static int64_t | getBlocks (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static int64_t | getBlockSize (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static time_t | getATime (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static time_t | getMTime (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static time_t | getCTime (const std::string &fullpath, bool followSymlink=true) throw (FileException) |
| |
|
static mode_t | itomode (int mode) throw (FileException) |
| |
|
|
static const std::string | any = "^.*" |
| |
|
static const std::set< uint8_t > | all = { DT_BLK, DT_CHR, DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK, DT_UNKNOWN } |
| |
|
static const std::set< uint8_t > | regular = { DT_LNK, DT_REG, DT_UNKNOWN } |
| |
|
static const std::set< uint8_t > | files = { DT_BLK, DT_CHR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK, DT_UNKNOWN } |
| |
|
static const std::set< uint8_t > | dirs = { DT_DIR } |
| |
Definition at line 40 of file File.h.