1 #ifndef __cpPlugins__OS__FileSystem__h__
2 #define __cpPlugins__OS__FileSystem__h__
4 #include <cpPlugins/Config.h>
14 class cpPlugins_EXPORT FileSystem
17 typedef FileSystem Self;
22 static std::string CanonicalPath( const std::string& path );
26 static std::pair< std::string, std::string > SplitPath(
27 const std::string& path
32 static std::set< std::string > LoadDirContents(
33 const std::string& path, bool recursive = false,
34 const std::string& pattern = ""
39 static int GlobMatch( const char* target, const char* pattern );
43 static bool Glob( const std::string& line, const std::string& pattern );
47 static bool Read( std::string& buffer, const std::string& fname );
51 static bool Write( const std::string& buffer, const std::string& fname );
58 #endif // __cpPlugins__OS__FileSystem__h__