CmFileSystem.h 541 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "CmPrerequisitesUtil.h"
  3. namespace CamelotEngine
  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 vector<String>::type getFiles(const String& dirPath);
  15. };
  16. }