| 12345678910111213141516171819202122232425262728293031323334 |
- #pragma once
- #include "CmPrerequisitesUtil.h"
- #include "CmPath.h"
- namespace CamelotFramework
- {
- class CM_UTILITY_EXPORT FileSystem
- {
- public:
- static DataStreamPtr openFile(const WString& fullPath, bool readOnly = true);
- static DataStreamPtr createAndOpenFile(const WString& fullPath);
- static UINT64 getFileSize(const WString& fullPath);
- static void remove(const WString& fullPath, bool recursively = true);
- static void remove(const WPath& fullPath, bool recursively = true);
- static void createDir(const WString& fullPath);
- static void createDir(const WPath& fullPath);
- static bool isFile(const WString& fullPath);
- static bool isFile(const WPath& fullPath);
-
- static bool isDirectory(const WString& fullPath);
- static bool isDirectory(const WPath& fullPath);
- static void getChildren(const WPath& dirPath, Vector<WPath>::type& files, Vector<WPath>::type& directories);
- static std::time_t getLastModifiedTime(const WString& fullPath);
- static WString getWorkingDirectoryPath();
- static WString getParentDirectory(const WString& path);
- };
- }
|