18 #ifndef COPASI_CDirEntry
19 #define COPASI_CDirEntry
42 static bool isFile(
const std::string & path);
50 static bool isDir(
const std::string & path);
57 static bool exist(
const std::string & path);
65 static bool isReadable(
const std::string & path);
73 static bool isWritable(
const std::string & path);
81 static std::string
baseName(
const std::string & path);
88 static std::string
fileName(
const std::string & path);
96 static std::string
dirName(
const std::string & path);
104 static std::string
suffix(
const std::string & path);
112 static bool createDir(
const std::string & dir,
113 const std::string & parent =
"");
123 const std::string &
suffix);
132 static bool move(
const std::string & from,
133 const std::string & to);
140 static bool remove(
const std::string & path);
148 static bool removeFiles(
const std::string & pattern,
149 const std::string & dir);
157 static std::vector< std::string >
compilePattern(
const std::string & pattern);
167 static bool match(
const std::string & name,
168 const std::vector< std::string > & patternList);
183 const std::string & relativeTo);
192 const std::string & absoluteTo);
201 static std::string
normalize(
const std::string & path);
216 const std::string pattern,
217 std::string::size_type & at,
218 std::string::size_type & after);
221 #endif // COPASI_CDirEntry
static bool isFile(const std::string &path)
static bool isDir(const std::string &path)
static bool move(const std::string &from, const std::string &to)
static bool isRelativePath(const std::string &path)
static bool match(const std::string &name, const std::vector< std::string > &patternList)
static std::string fileName(const std::string &path)
static bool removeFiles(const std::string &pattern, const std::string &dir)
static std::string baseName(const std::string &path)
static bool matchInternal(const std::string &name, const std::string pattern, std::string::size_type &at, std::string::size_type &after)
static std::string dirName(const std::string &path)
static bool createDir(const std::string &dir, const std::string &parent="")
static bool exist(const std::string &path)
static const std::string Separator
static bool isWritable(const std::string &path)
static std::string createTmpName(const std::string &dir, const std::string &suffix)
static std::vector< std::string > compilePattern(const std::string &pattern)
static std::string normalize(const std::string &path)
static bool isReadable(const std::string &path)
static bool makePathAbsolute(std::string &relativePath, const std::string &absoluteTo)
static bool makePathRelative(std::string &absolutePath, const std::string &relativeTo)
static std::string suffix(const std::string &path)