2#ifndef ZIPIOS_FILEPATH_HPP
3#define ZIPIOS_FILEPATH_HPP
49 FilePath(std::string
const & path = std::string());
51 operator std::string ()
const;
Handle a file path and name and its statistics.
bool isFifo() const
Check whether the file is a pipe.
void check() const
Read the file mode.
FilePath operator+(FilePath const &name) const
Append the a child name to this path.
bool isCharSpecial() const
Check whether the file is a character special file.
bool isBlockSpecial() const
Check whether the file is a block special file.
friend bool operator==(char const *lhs, FilePath const &rhs)
Check whether two FilePath represent the same file.
void clear()
Clear the filename.
bool isDirectory() const
Check whether the file is a directory.
std::time_t lastModificationTime() const
Get the last modification time of the file.
bool empty() const
Check whether the filename is empty.
size_t fileSize() const
Get the size of the file.
bool exists() const
Check whether the file exists.
FilePath & operator=(std::string const &path)
Replace the path with a new path.
size_t size() const
Get the length of the string.
bool isRegular() const
Check whether the file is a regular file.
std::string filename() const
Retrieve the basename.
bool isSocket() const
Check whether the file is a socket.
size_t length() const
Get the length of the string.
The zipios namespace includes the Zipios library definitions.
std::ostream & operator<<(std::ostream &os, FileCollection const &collection)
Write a FileCollection to the output stream.
zipios configuration header.