You.i Engine
YiDir.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_DIR_H_
3 #define _YI_DIR_H_
4 
5 #include "framework/YiPredef.h"
6 #include "utility/YiString.h"
7 
16 class CYIDir
17 {
18 public:
23  static const CYIString &GetSeparator();
24 
33  static std::vector<CYIString> GetListing(const CYIString &directoryName);
34 
38  static bool AreDirectoryOperationsSupported();
39 
45  static bool DirectoryExists(const CYIString &path);
46 
52  static bool IsDirectory(const CYIString &path);
53 
57  static bool CreateDirectory(const CYIString &path, bool createParents = false);
58 
62  static bool RemoveDirectory(const CYIString &path);
63 
64 private:
65  static bool CreateFinalDirectory(const CYIString &path);
66 
67  CYIDir() = delete;
68 };
69 
72 #endif // _YI_DIR_H_
static bool IsDirectory(const CYIString &path)
static bool CreateDirectory(const CYIString &path, bool createParents=false)
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
static bool AreDirectoryOperationsSupported()
static bool DirectoryExists(const CYIString &path)
static bool RemoveDirectory(const CYIString &path)
This class provides functionality for working with directories.
Definition: YiDir.h:16
static const CYIString & GetSeparator()
static std::vector< CYIString > GetListing(const CYIString &directoryName)