Planeshift
FileUtil Class Reference

#include <fileutil.h>

Public Member Functions

bool CopyFile (csString from, csString to, bool vfsPath, bool executable, bool silent=false, bool copyPermissions=true)
 
 FileUtil (iVFS *vfs)
 
bool isExecutable (const char *path)
 
void MakeDirectory (const char *directory)
 
void MoveFile (csString from, csString to, bool vfsPath, bool executable, bool silent=false)
 
bool RemoveFile (const char *filename, bool silent=false)
 
void SetPermissions (const char *path, FileStat *fs)
 
csPtr< FileStatStatFile (const char *path)
 
 ~FileUtil ()
 

Detailed Description

Definition at line 64 of file fileutil.h.

Constructor & Destructor Documentation

FileUtil::FileUtil ( iVFS *  vfs)
FileUtil::~FileUtil ( )

Member Function Documentation

bool FileUtil::CopyFile ( csString  from,
csString  to,
bool  vfsPath,
bool  executable,
bool  silent = false,
bool  copyPermissions = true 
)
bool FileUtil::isExecutable ( const char *  path)
void FileUtil::MakeDirectory ( const char *  directory)
void FileUtil::MoveFile ( csString  from,
csString  to,
bool  vfsPath,
bool  executable,
bool  silent = false 
)
inline

Definition at line 83 of file fileutil.h.

bool FileUtil::RemoveFile ( const char *  filename,
bool  silent = false 
)
void FileUtil::SetPermissions ( const char *  path,
FileStat fs 
)
csPtr<FileStat> FileUtil::StatFile ( const char *  path)

The documentation for this class was generated from the following file: