@@ -1607,13 +1607,22 @@ class IGFD_API FileInfos {
16071607
16081608class IFileSystem {
16091609public:
1610- virtual bool IsDirectoryCanBeOpened (const std::string& vName) = 0;
1611- virtual bool IsDirectoryExist (const std::string& vName) = 0;
1612- virtual bool CreateDirectoryIfNotExist (const std::string& vName) = 0;
1610+ // say if a directory can be openened or for any reason locked
1611+ virtual bool IsDirectoryCanBeOpened (const std::string& vName) = 0;
1612+ // say if a directory exist
1613+ virtual bool IsDirectoryExist (const std::string& vName) = 0;
1614+ // say if a file exist
1615+ virtual bool IsFileExist (const std::string& vName) = 0;
1616+ // say if a directory was created, return false if vName is invalid or alreayd exist
1617+ virtual bool CreateDirectoryIfNotExist (const std::string& vName) = 0;
1618+ // extract the component of a file apth name, like path, name, ext
16131619 virtual IGFD::Utils::PathStruct ParsePathFileName (const std::string& vPathFileName) = 0;
1614- virtual std::vector<IGFD::FileInfos> ScanDirectory (const std::string& vPath) = 0;
1615- virtual bool IsDirectory (const std::string& vFilePathName) = 0;
1616- virtual std::vector<std::string> GetDrivesList () = 0;
1620+ // will return a list of files inside a path
1621+ virtual std::vector<IGFD::FileInfos> ScanDirectory (const std::string& vPath) = 0;
1622+ // say if the path is well a directory
1623+ virtual bool IsDirectory (const std::string& vFilePathName) = 0;
1624+ // return a drive list on windows, bu can be used on android or linux for give to the suer a list of root dir
1625+ virtual std::vector<std::string> GetDrivesList () = 0;
16171626};
16181627
16191628#pragma endregion
@@ -1739,7 +1748,6 @@ class IGFD_API FileManager {
17391748 bool SetPathOnParentDirectoryIfAny (); // compose paht on parent directory
17401749 std::string GetCurrentPath (); // get the current path
17411750 void SetCurrentPath (const std::string& vCurrentPath); // set the current path
1742- static bool IsFileExist (const std::string& vFile);
17431751 void SetDefaultFileName (const std::string& vFileName);
17441752 bool SelectDirectory (const std::shared_ptr<FileInfos>& vInfos); // enter directory
17451753 void SelectFileName (const FileDialogInternal& vFileDialogInternal,
0 commit comments