36 void GetDirListing(
const std::string& sPath,
37 std::vector<std::string>& AddTo,
38 DirListingReturnFilter dirListingFilter = ANY_TYPE,
39 bool bReturnPathToo =
false);
41 void GetDirListingWithMultipleExtensions(
42 const std::string& sPath,
43 std::vector<std::string>
const& ExtensionList,
44 std::vector<std::string>& AddTo,
45 DirListingReturnFilter dirListingFilter = ANY_TYPE,
46 bool bReturnPathToo =
false);
49 void GetDirListing(
const std::string& sPath,
50 std::vector<std::string>& AddTo,
55 sPath, AddTo, dirOnly ? ONLY_DIR : ANY_TYPE, bReturnPathToo);
59 void GetDirListingWithMultipleExtensions(
60 const std::string& sPath,
61 std::vector<std::string>
const& ExtensionList,
62 std::vector<std::string>& AddTo,
66 GetDirListingWithMultipleExtensions(sPath,
69 dirOnly ? ONLY_DIR : ANY_TYPE,
73 auto Move(
const std::string& sOldPath,
const std::string& sNewPath) -> bool;
74 auto Remove(
const std::string& sPath) -> bool;
75 void CreateDir(
const std::string& sDir);
83 auto GetFileType(
const std::string& sPath) -> FileType;
85 auto IsAFile(
const std::string& sPath) -> bool;
86 auto IsADirectory(
const std::string& sPath) -> bool;
87 auto DoesFileExist(
const std::string& sPath) -> bool;
89 auto GetFileSizeInBytes(
const std::string& sPath) -> int;
90 auto GetFileHash(
const std::string& sPath) -> int;
96 auto ResolvePath(
const std::string& path) -> std::string;
100 auto ResolveSongFolder(
const std::string& path,
101 bool additionalSongs =
false) -> std::string;
103 auto Mount(
const std::string& sType,
104 const std::string& sRealPath,
105 const std::string& sMountPoint,
106 bool bAddToEnd =
true) -> bool;
108 const std::string& sMountPoint,
109 bool bAddToEnd =
true);
110 void Unmount(
const std::string& sType,
111 const std::string& sRoot,
112 const std::string& sMountPoint);
117 void Remount(
const std::string& sMountpoint,
const std::string& sPath);
118 auto IsMounted(
const std::string& MountPoint) -> bool;
121 std::string Type, Root, MountPoint;
123 void GetLoadedDrivers(std::vector<DriverLocation>& asMounts);
125 void FlushDirCache(
const std::string& sPath = std::string());
128 auto Open(
const std::string& sPath,
int iMode,
int& iError)
130 void CacheFile(
const RageFileBasic* fb,
const std::string& sPath);
138 void PushSelf(lua_State* L);
141 auto OpenForReading(
const std::string& sPath,
int iMode,
int& iError)
143 auto OpenForWriting(
const std::string& sPath,
int iMode,
int& iError)