CmFileSystem.h 742 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "CmPrerequisitesUtil.h"
  3. namespace CamelotFramework
  4. {
  5. class CM_UTILITY_EXPORT FileSystem
  6. {
  7. public:
  8. static DataStreamPtr open(const String& fullPath, bool readOnly = true);
  9. static DataStreamPtr create(const String& fullPath);
  10. static void remove(const String& fullPath);
  11. static bool fileExists(const String& fullPath);
  12. static bool dirExists(const String& fullPath);
  13. static void createDir(const String& fullPath);
  14. static void deleteDir(const String& fullPath);
  15. static Vector<String>::type getFiles(const String& dirPath);
  16. static String getCurrentPath();
  17. static bool isValidFileName(const String& name);
  18. static String getDirectoryPath(const String& path);
  19. };
  20. }