CmFileSystem.h 749 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "CmPrerequisitesUtil.h"
  3. namespace CamelotFramework
  4. {
  5. class CM_UTILITY_EXPORT FileSystem
  6. {
  7. public:
  8. static DataStreamPtr openFile(const WString& fullPath, bool readOnly = true);
  9. static DataStreamPtr createAndOpenFile(const WString& fullPath);
  10. static UINT64 getFileSize(const WString& fullPath);
  11. static void remove(const WString& fullPath, bool recursively = true);
  12. static void createDir(const WString& fullPath);
  13. static bool isFile(const WString& fullPath);
  14. static bool isDirectory(const WString& fullPath);
  15. static Vector<WString>::type getFiles(const WString& dirPath);
  16. static WString getWorkingDirectoryPath();
  17. static WString getParentDirectory(const WString& path);
  18. };
  19. }