Pol  Revision:4b29d2b
fileutil.h
Go to the documentation of this file.
1 
7 #ifndef CLIB_FILEUTIL_H
8 #define CLIB_FILEUTIL_H
9 
10 #include <string>
11 
12 namespace Pol
13 {
14 namespace Clib
15 {
16 bool IsDirectory( const char* dir );
17 void MakeDirectory( const char* dir );
18 bool FileExists( const char* filename );
19 bool FileExists( const std::string& filename );
20 int filesize( const char* fname );
21 unsigned int GetFileTimestamp( const char* fname );
22 void RemoveFile( const std::string& fname );
23 std::string FullPath( const char* filename );
24 std::string GetTrueName( const char* filename );
25 std::string GetFilePart( const char* filename );
26 std::string normalized_dir_form( const std::string& str );
27 int make_dir( const char* dir ); // recursive
28 int strip_one( std::string& direc );
29 }
30 }
31 #endif
std::string FullPath(const char *filename)
Definition: fileutil.cpp:148
void MakeDirectory(const char *dir)
Definition: fileutil.cpp:62
int strip_one(std::string &direc)
Definition: fileutil.cpp:71
unsigned int GetFileTimestamp(const char *fname)
Definition: fileutil.cpp:135
std::string GetFilePart(const char *filename)
Definition: fileutil.cpp:175
bool IsDirectory(const char *dir)
Definition: fileutil.cpp:51
int filesize(const char *fname)
Definition: fileutil.cpp:127
std::string GetTrueName(const char *filename)
Definition: fileutil.cpp:163
void RemoveFile(const std::string &fname)
Definition: fileutil.cpp:143
std::string normalized_dir_form(const std::string &istr)
Definition: fileutil.cpp:25
bool FileExists(const char *filename)
Definition: fileutil.cpp:118
Definition: berror.cpp:12
int make_dir(const char *dir)
Definition: fileutil.cpp:82