15 #include "CeeCore/Base.h" 16 #include "CeeCore/Str.h" 31 static Str fromNativeSeparators(
const Str& path);
32 static Str toNativeSeparators(
const Str& path);
34 static Str addTrailingSeparator(
const Str& path);
35 static Str removeTrailingSeparator(
const Str& path);
37 static Str fileName(
const Str& path);
38 static Str extension(
const Str& path);
39 static Str parentPath(
const Str& path);
41 static Str makeAbsolute(
const Str& path);
43 static Str currentPath();
45 static bool pathExists(
const Str& pathName);
46 static bool fileExists(
const Str& fileName);
47 static bool directoryExists(
const Str& dirName);
49 static bool createDirectory(
const Str& dirName);
50 static bool createDirectoryTree(
const Str& dirPath);
52 static bool copyFile(
const Str& fromFileName,
const Str& toFileName);
54 static bool deleteFile(
const Str& fileName);
55 static bool deleteDirectory(
const Str& dirName);
56 static bool deleteAllFilesInDirectory(
const Str& dirName);
57 static bool deleteDirectoryRecursive(
const Str& dirName);
59 static bool getDirectoryContents(
const Str& dirName, std::vector<Str>* fileNameArr, std::vector<Str>* dirNameArr);
60 static std::vector<Str> getAllFilesInDirectory(
const Str& dirName);
61 static std::vector<Str> findFilesInDirectory(
const Str& dirName,
const Str& filePattern);
63 static uint64_t fileSize(
const Str& fileName);
64 static unsigned int fileContentsCrc(
const Str& fileName, uint64_t maxBytesToRead);
Static class containing file system utility functions.
Definition: FileSystem.h:28
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
A general unicode based string class.
Definition: Str.h:28