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