65 path.erase(path.size() - 1);
165 FilePath::operator std::string ()
const
307 if(pos != std::string::npos)
309 return m_path.substr(pos + 1);
504 os << static_cast<std::string>(path);
std::ostream & operator<<(std::ostream &os, FileCollection const &collection)
Write a FileCollection to the output stream.
std::string filename() const
Retrieve the basename.
std::string pruneTrailingSeparator(std::string path)
Prune the trailing separator if present.
bool isRegular() const
Check whether the file is a regular file.
FilePath(std::string const &path="")
Initialize a FilePath object.
bool isCharSpecial() const
Check whether the file is a character special file.
bool isSocket() const
Check whether the file is a socket.
std::time_t lastModificationTime() const
Get the last modification time of the file.
bool isBlockSpecial() const
Check whether the file is a block special file.
FilePath & operator=(std::string const &path)
Replace the path with a new path.
bool isDirectory() const
Check whether the file is a directory.
bool operator==(char const *rhs) const
Check whether two FilePath represent the same file.
char const g_separator
The character used as the filename separator.
bool exists() const
Check whether the file exists.
size_t fileSize() const
Get the size of the file.
size_t size() const
Get the length of the string.
bool isFifo() const
Check whether the file is a pipe.
Define the zipios::FilePath class.
Handle a file path and name and its statistics.
Various functions used throughout the library.
size_t length() const
Get the length of the string.
FilePath operator+(FilePath const &name) const
Append the a child name to this path.
void check() const
Read the file mode.
bool operator==(char const *lhs, FilePath const &rhs)
Check whether two FilePath represent the same file.