    

 ## On this page

  

 

 # StorageFilesystem

 Last update: 16.07.2025 

<a id="l00001" name="l00001"></a> 1\#ifndef CFFSDK\_PROJECT\_STORAGEFILESYSTEM\_H

<a id="l00002" name="l00002"></a> 2\#define CFFSDK\_PROJECT\_STORAGEFILESYSTEM\_H

<a id="l00003" name="l00003"></a> 3 

<a id="l00004" name="l00004"></a> 4\#include "Project/LibraryType.hpp"

<a id="l00005" name="l00005"></a> 5\#include "Project/Storage.hpp"

<a id="l00006" name="l00006"></a> 6\#include "Project/URL.hpp"

<a id="l00007" name="l00007"></a> 7\#include "Project/Path.hpp"

<a id="l00008" name="l00008"></a> 8\#include &lt;string&gt;

<a id="l00009" name="l00009"></a> 9 

<a id="l00010" name="l00010"></a> 10namespace [ansys](namespaceansys.xhtml) {

<a id="l00011" name="l00011"></a> 11namespace Project {

<a id="l00012" name="l00012"></a> 12 

<a id="l00013" name="l00013"></a>[ 13](classansys_1_1_project_1_1_storage_filesystem.xhtml)class ANSYS_PROJECT_DLL [StorageFilesystem](classansys_1_1_project_1_1_storage_filesystem.xhtml) : public [Storage](classansys_1_1_project_1_1_storage.xhtml) {

<a id="l00014" name="l00014"></a> 14public:

<a id="l00015" name="l00015"></a> 15 [StorageFilesystem](classansys_1_1_project_1_1_storage_filesystem.xhtml)();

<a id="l00016" name="l00016"></a> 16 virtual [~StorageFilesystem](classansys_1_1_project_1_1_storage_filesystem.xhtml)();

<a id="l00017" name="l00017"></a> 17 

<a id="l00018" name="l00018"></a> 18 [Error](classansys_1_1_project_1_1_error.xhtml) createFolder(const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pParentPath,

<a id="l00019" name="l00019"></a> 19 const [Path](classansys_1_1_project_1_1_path.xhtml)&amp; pFolderPath);

<a id="l00020" name="l00020"></a> 20 virtual bool isFolder(const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pPath);

<a id="l00021" name="l00021"></a> 21 virtual bool isFile(const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pPath);

<a id="l00022" name="l00022"></a> 22 virtual [Error](classansys_1_1_project_1_1_error.xhtml) copyFile(const std::string&amp; pSource,const std::string&amp; pTarget);

<a id="l00023" name="l00023"></a> 23 virtual [Error](classansys_1_1_project_1_1_error.xhtml) eraseFile(const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pFile);

<a id="l00024" name="l00024"></a> 24 virtual [Error](classansys_1_1_project_1_1_error.xhtml) eraseFolder(const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pFile,EraseOptions pRecursive); 

<a id="l00025" name="l00025"></a> 25 virtual [Error](classansys_1_1_project_1_1_error.xhtml) moveFile(const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pSource,const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pTarget);

<a id="l00026" name="l00026"></a> 26 virtual [Error](classansys_1_1_project_1_1_error.xhtml) matchFiles(const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pPath,std::string pWildcard,std::vector&lt;URL&gt;&amp; pMatchFiles);

<a id="l00027" name="l00027"></a> 27 

<a id="l00028" name="l00028"></a> 28 virtual std::string getFileCompressionSuffix() const;

<a id="l00029" name="l00029"></a> 29 virtual [Error](classansys_1_1_project_1_1_error.xhtml) compressFiles(const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pRootFolder,std::vector&lt;URL&gt;&amp; pSourceFiles,const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pTargetArchive);

<a id="l00030" name="l00030"></a> 30 virtual [Error](classansys_1_1_project_1_1_error.xhtml) extractFile(const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pArchive,const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pTargetLocation);

<a id="l00031" name="l00031"></a> 31 

<a id="l00032" name="l00032"></a> 32 virtual [Error](classansys_1_1_project_1_1_error.xhtml) getFileTimestamp(const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pFile,int&amp; pTime);

<a id="l00033" name="l00033"></a> 33 virtual [Error](classansys_1_1_project_1_1_error.xhtml) getFileChecksum(const [URL](classansys_1_1_project_1_1_u_r_l.xhtml)&amp; pFile,std::string&amp; pChecksum);

<a id="l00034" name="l00034"></a> 34private:

<a id="l00035" name="l00035"></a> 35 

<a id="l00036" name="l00036"></a> 36 static std::string get7zLocation(std::string&amp; pError);

<a id="l00037" name="l00037"></a> 37};

<a id="l00038" name="l00038"></a> 38 

<a id="l00039" name="l00039"></a> 39}

<a id="l00040" name="l00040"></a> 40}

<a id="l00041" name="l00041"></a> 41 

<a id="l00042" name="l00042"></a> 42 

<a id="l00043" name="l00043"></a> 43\#endif // CFFSDK\_PROJECT\_STORAGEFILESYSTEM\_H

[ansys::Project::Error](classansys_1_1_project_1_1_error.xhtml)

The return state / error value of a Project function call.

**Definition:** Error.hpp:11



[ansys::Project::Path](classansys_1_1_project_1_1_path.xhtml)

Paths used for internal Project filesystem.

**Definition:** Path.hpp:11



[ansys::Project::StorageFilesystem](classansys_1_1_project_1_1_storage_filesystem.xhtml)

Class for Storage on standard filesystem, for file:// URL.

**Definition:** StorageFilesystem.hpp:13



[ansys::Project::Storage](classansys_1_1_project_1_1_storage.xhtml)

Base class for file storage management module.

**Definition:** Storage.hpp:13



[ansys::Project::URL](classansys_1_1_project_1_1_u_r_l.xhtml)

The address of a local or remote file, using the URI format.

**Definition:** URL.hpp:12



[ansys](namespaceansys.xhtml)

**Definition:** API.dox:1