29 #ifndef Pt_System_FileInfo_h
30 #define Pt_System_FileInfo_h
32 #include <Pt/System/Api.h>
33 #include <Pt/System/Path.h>
34 #include <Pt/DateTime.h>
35 #include <Pt/String.h>
129 explicit FileInfo(
const char* path);
156 static Type type(
const Path& path);
166 {
return type(path) != Invalid; }
169 static void createFile(
const Path& path);
172 static void createDirectory(
const Path& path);
175 static void createDirectories(
const Path& path);
181 static void remove(
const Path& path);
187 static void move(
const Path& path,
const Path& to);
230 #endif // Pt_System_FileInfo_h
~FileInfo()
Destructor.
Definition: FileInfo.h:132
Provides information about a node in the file-system.
Definition: FileInfo.h:103
Type type() const
Returns the file type.
Definition: FileInfo.h:151
FileInfo()
Default constructor.
Definition: FileInfo.h:116
Represents a path in the file-system.
Definition: Path.h:47
Pt::uint64_t size() const
Returns the file size.
Definition: FileInfo.h:147
Combined Date and Time value.
Definition: DateTime.h:59
static bool exists(const Path &path)
Returns true if a file or directory exists at the path.
Definition: FileInfo.h:165
Type
File-node type.
Definition: FileInfo.h:107
uint_type uint64_t
Unsigned 64-bit integer type.
Definition: Types.h:54
Unicode capable basic_string.
Definition: String.h:42
bool operator==(const FileInfo &a, const FileInfo &b)
Compare two FileInfo objects.
Definition: FileInfo.h:212
bool operator<(const FileInfo &a, const FileInfo &b)
Compare two FileInfo objects.
Definition: FileInfo.h:203
bool operator!=(const FileInfo &a, const FileInfo &b)
Compare two FileInfo objects.
Definition: FileInfo.h:221
const Path & path() const
Returns the full path of node in the file-system.
Definition: FileInfo.h:143