FileSystem Namespace Reference
[Filesystem Utils]


Functions

int CompareFileTimestamps (const string &path1, const string &path2)
bool DirectoryExists (const string &path)
bool FileExists (const string &path)

Function Documentation

int FileSystem::CompareFileTimestamps ( const std::string &  path1,
const std::string &  path2 
)

Compares the last modification times of file1 and file2. Returns one of the following values:

  • If file1 has been modified more recently than file2, returns a value greater than zero (> 0)
  • If file2 has been modified more recently than file1, returns a value less than zero (< 0)
  • If file1 and file2 were last modified at the same time, returns zero (0)
Exceptions:
CS240Exception if either file1 or file2 does not exist

Definition at line 38 of file FileSystem.cpp.

bool FileSystem::DirectoryExists ( const std::string &  path  ) 

Returns:
true if the specified directory exists, and false otherwise.

Definition at line 32 of file FileSystem.cpp.

bool FileSystem::FileExists ( const std::string &  path  ) 

Returns:
true if the specified file exists, and false otherwise.

Definition at line 26 of file FileSystem.cpp.


Generated on Wed Jul 7 16:30:30 2010 for CS240Utils by  doxygen 1.5.8