summaryrefslogtreecommitdiff
path: root/shared/fileHandling.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:02:17 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:02:17 +0200
commitb9203ee84953006547f4afd58f405874c87bf0dc (patch)
tree9e41f1533f120e9268e86658c52458630ffd718a /shared/fileHandling.h
parent3.0 (diff)
downloadFreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.gz
FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.bz2
FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.zip
3.1
Diffstat (limited to 'shared/fileHandling.h')
-rw-r--r--shared/fileHandling.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/shared/fileHandling.h b/shared/fileHandling.h
index d856603f..b12f6f03 100644
--- a/shared/fileHandling.h
+++ b/shared/fileHandling.h
@@ -17,8 +17,8 @@ bool symlinkExists(const DefaultChar* objname); //throw() check if a symbo
//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);
+//optionally: copy creation/last change date, DOES NOTHING if something fails
+void copyFileTimes(const Zstring& sourceDir, const Zstring& targetDir); //throw()
//recycler
bool recycleBinExists(); //test existence of Recycle Bin API on current system
@@ -40,6 +40,9 @@ struct MoveFileCallback //callback functionality
virtual Response requestUiRefresh() = 0; //DON'T throw exceptions here, at least in Windows build!
};
+//rename file: no copying!!!
+void renameFile(const Zstring& oldName, const Zstring& newName); //throw (FileError);
+
//move source to target; expectations: target not existing, all super-directories of target exist
void moveFile(const Zstring& sourceFile, const Zstring& targetFile, MoveFileCallback* callback = NULL); //throw (FileError);
bgstack15