version 1.6, 2001/04/25 22:20:55
|
version 1.9, 2001/05/06 13:16:16
|
|
|
// Get the size of the file in bytes: | // Get the size of the file in bytes: |
| |
static Boolean getFileSize(const String& path, Uint32& size); | static Boolean getFileSize(const String& path, Uint32& size); |
/** Get the current working Directory |
|
*/ |
/** Get the current working Directory. */ |
static Boolean getCurrentDirectory(String& path); | static Boolean getCurrentDirectory(String& path); |
| |
/** Remove the given directory. The directory must be empty | /** Remove the given directory. The directory must be empty |
|
|
WARNING: This differs significantly from the <TT>removeDirectory</TT> | WARNING: This differs significantly from the <TT>removeDirectory</TT> |
function in that it removes both directories and files and | function in that it removes both directories and files and |
removes a complete hiearchy. Use with caution. | removes a complete hiearchy. Use with caution. |
|
@param path defines the high level directory to be removed |
@parm path defines the high level directory to be removed |
@return Boolean True if successful |
@return Boolean - ATTN. |
|
@exception - ATTN: Not sure if there is any exception | @exception - ATTN: Not sure if there is any exception |
*/ | */ |
static Boolean removeDirectoryHier(const String& path); | static Boolean removeDirectoryHier(const String& path); |
|
|
@param filename of second file | @param filename of second file |
ATTN: are filenames local or global??? | ATTN: are filenames local or global??? |
@return Return true if the two files are identical. | @return Return true if the two files are identical. |
|
|
@exception Throws CannotOpenFile if either file cannot be opened. | @exception Throws CannotOpenFile if either file cannot be opened. |
*/ | */ |
|
|
static Boolean compare( | static Boolean compare( |
const String& fileName1, | const String& fileName1, |
const String& fileName2); | const String& fileName2); |
| |
// Rename the given file to the new name: |
/** Rename the given file to the new name. */ |
|
|
static Boolean renameFile( | static Boolean renameFile( |
const String& oldFileName, | const String& oldFileName, |
const String& newFileName); | const String& newFileName); |
| |
// Translate backward slashes to forward slashes: |
/** Translate backward slashes to forward slashes: */ |
|
|
static void translateSlashes(String& path); | static void translateSlashes(String& path); |
|
|
|
/** Returns true is the given directory is empty. */ |
|
static Boolean isDirectoryEmpty(const String& path); |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |