25 #ifndef __FILEUTIL_H__ 26 #define __FILEUTIL_H__ 29 #include <iutil/vfs.h> 30 #include <csutil/refcount.h> 72 csPtr<FileStat> StatFile(
const char* path);
74 bool RemoveFile(
const char* filename,
bool silent =
false);
77 void MakeDirectory(
const char* directory);
80 bool CopyFile(csString from, csString to,
bool vfsPath,
bool executable,
bool silent =
false,
bool copyPermissions =
true);
83 inline void MoveFile(csString from, csString to,
bool vfsPath,
bool executable,
bool silent =
false)
85 CopyFile(from, to, vfsPath, executable, silent);
86 RemoveFile(from, silent);
90 bool isExecutable(
const char* path);
93 void SetPermissions(
const char* path,
FileStat* fs);
98 #endif // __FILEUTIL_H__
void MoveFile(csString from, csString to, bool vfsPath, bool executable, bool silent=false)