6 #include "Athena/Global.hpp"
13 explicit FileInfo(
const std::string& path = std::string());
15 std::string absolutePath()
const;
16 static inline std::string absolutePath(
const std::string& lnk)
17 {
return FileInfo(lnk).absolutePath(); }
19 std::string absoluteFilePath()
const;
20 static inline std::string absoluteFilePath(
const std::string& path)
21 {
return FileInfo(path).absoluteFilePath(); }
23 std::string filename()
const;
24 static inline std::string filename(
const std::string path)
25 {
return FileInfo(path).filename(); }
27 std::string path()
const;
28 static inline std::string path(
const std::string path)
31 std::string extension()
const;
32 static inline std::string extension(
const std::string path)
33 {
return FileInfo(path).extension(); }
35 atUint64 size()
const;
36 static inline atUint64 size(
const std::string path)
40 static inline bool exists(
const std::string& path)
44 static inline bool isLink(
const std::string& lnk)
47 static inline bool isFile(
const std::string& path)
51 static inline bool touch(
const std::string& path)
59 #endif // FILEINFO_HPP