diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:00:50 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:00:50 +0200 |
commit | 4ecfd41e36533d858c98d051ef70cab80e69e972 (patch) | |
tree | ca07d8745967d2c6a7123a5d32269cfbfaa7bd6c /shared/fileHandling.h | |
parent | 2.2 (diff) | |
download | FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.tar.gz FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.tar.bz2 FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.zip |
2.3
Diffstat (limited to 'shared/fileHandling.h')
-rw-r--r-- | shared/fileHandling.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/shared/fileHandling.h b/shared/fileHandling.h index b5e75c17..5ccd595f 100644 --- a/shared/fileHandling.h +++ b/shared/fileHandling.h @@ -10,16 +10,22 @@ namespace FreeFileSync { Zstring getFormattedDirectoryName(const Zstring& dirname); - bool fileExists(const DefaultChar* filename); //replaces wxFileExists()! - bool dirExists(const DefaultChar* dirname); //replaces wxDirExists(): optional 'cause wxDirExists treats symlinks correctly - bool symlinkExists(const DefaultChar* objname); //check if a symbolic link exists + bool fileExists(const DefaultChar* filename); //throw() replaces wxFileExists()! + bool dirExists(const DefaultChar* dirname); //throw() replaces wxDirExists(): optional 'cause wxDirExists treats symlinks correctly + bool symlinkExists(const DefaultChar* objname); //throw() check if a symbolic link exists + + //check if files can be moved between two EXISTING paths (without copying) + bool isMovable(const Zstring& pathFrom, const Zstring& pathTo); //throw() + + //optionally: copy directory last change date, DOES NOTHING if something fails + void copyDirLastChangeDate(const Zstring& sourceDir, const Zstring& targetDir); //recycler bool recycleBinExists(); //test existence of Recycle Bin API on current system //file handling - void removeFile(const Zstring& filename, const bool useRecycleBin); //throw (FileError, ::RuntimeException); - void removeDirectory(const Zstring& directory, const bool useRecycleBin); //throw (FileError); + void removeFile(const Zstring& filename, const bool useRecycleBin); //throw (FileError, std::logic_error) + void removeDirectory(const Zstring& directory, const bool useRecycleBin); //throw (FileError) class MoveFileCallback //callback functionality |