1 #ifndef UTILS_FILEUTILS_H 2 #define UTILS_FILEUTILS_H 21 void SafeFileName(
char* str);
22 std::string SafeFileName(
const std::string& str);
25 bool Exists(
const char* fn);
28 bool Delete(
const char* fn);
31 bool Rename(
const char* from,
const char* to);
34 bool Copy(
const char* from,
const char* to);
38 bool TempName(
char* out,
const char* directory=NULL,
const char* prefix=NULL);
41 bool IsDirectory(
const char* path);
44 bool MakeDirectory(
const char* path);
48 bool MakeDirectoryRecursive(
const char* path);
51 bool ListDirectory(
const char* path,std::vector<std::string>& items);
54 std::string GetWorkingDirectory();
Definition: fileutils.cpp:25