summaryrefslogtreecommitdiff
path: root/shared/fileHandling.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:50 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:50 +0200
commit4ecfd41e36533d858c98d051ef70cab80e69e972 (patch)
treeca07d8745967d2c6a7123a5d32269cfbfaa7bd6c /shared/fileHandling.h
parent2.2 (diff)
downloadFreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.tar.gz
FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.tar.bz2
FreeFileSync-4ecfd41e36533d858c98d051ef70cab80e69e972.zip
2.3
Diffstat (limited to 'shared/fileHandling.h')
-rw-r--r--shared/fileHandling.h16
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
bgstack15