2 #ifndef ZIPIOS_FILEPATH_HPP
3 #define ZIPIOS_FILEPATH_HPP
49 FilePath(std::string
const& path =
"");
51 operator std::string ()
const;
std::ostream & operator<<(std::ostream &os, FileCollection const &collection)
Write a FileCollection to the output stream.
std::string filename() const
Retrieve the basename.
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.
bool exists() const
Check whether the file exists.
size_t fileSize() const
Get the size of the file.
zipios configuration header.
size_t size() const
Get the length of the string.
bool isFifo() const
Check whether the file is a pipe.
Handle a file path and name and its statistics.
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.