1 #ifndef __cpPlugins__OS__FileSystem__h__
2 #define __cpPlugins__OS__FileSystem__h__
4 #include <cpPlugins/Config.h>
13 class cpPlugins_EXPORT FileSystem
16 typedef FileSystem Self;
21 static std::string CanonicalPath( const std::string& path );
25 static std::pair< std::string, std::string > SplitPath(
26 const std::string& path
31 static std::set< std::string > LoadDirContents(
32 const std::string& path, bool recursive = false,
33 const std::string& pattern = ""
38 static int GlobMatch( const char* target, const char* pattern );
42 static bool Glob( const std::string& line, const std::string& pattern );
46 static bool Read( std::string& buffer, const std::string& fname );
50 static bool Write( const std::string& buffer, const std::string& fname );
57 #endif // __cpPlugins__OS__FileSystem__h__