diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:57:03 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:57:03 +0200 |
commit | 420fb6c9b3427f65cfe24411944ee46b58cfcfb4 (patch) | |
tree | 58269ba5ee7a22d2df004f03b100cc234b8c3f14 /library/fileHandling.h | |
parent | 1.16 (diff) | |
download | FreeFileSync-420fb6c9b3427f65cfe24411944ee46b58cfcfb4.tar.gz FreeFileSync-420fb6c9b3427f65cfe24411944ee46b58cfcfb4.tar.bz2 FreeFileSync-420fb6c9b3427f65cfe24411944ee46b58cfcfb4.zip |
1.17
Diffstat (limited to 'library/fileHandling.h')
-rw-r--r-- | library/fileHandling.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/library/fileHandling.h b/library/fileHandling.h index 7a1b1842..6c9a0400 100644 --- a/library/fileHandling.h +++ b/library/fileHandling.h @@ -26,7 +26,7 @@ namespace FreeFileSync struct FileInfo { wxULongLong fileSize; //unit: bytes! - time_t lastWriteTimeRaw; //number of seconds since Jan. 1st 1970 UTC + wxLongLong lastWriteTimeRaw; //number of seconds since Jan. 1st 1970 UTC }; //traverser interface @@ -40,8 +40,9 @@ namespace FreeFileSync }; //custom traverser with detail information about files - void traverseInDetail(const Zstring& directory, const bool traverseSymbolicLinks, FullDetailFileTraverser* sink); - void getAllFilesAndDirs(const Zstring& sourceDir, std::vector<Zstring>& files, std::vector<Zstring>& directories) throw(FileError); + void traverseInDetail(const Zstring& directory, const bool traverseDirectorySymlinks, FullDetailFileTraverser* sink); + + bool fileExists(const Zstring& filename); //replaces wxFileExists()! //recycler bool recycleBinExists(); //test existence of Recycle Bin API on current system @@ -49,12 +50,17 @@ namespace FreeFileSync //file handling void removeDirectory(const Zstring& directory, const bool useRecycleBin); void removeFile(const Zstring& filename, const bool useRecycleBin); - void createDirectory(const Zstring& directory, const int level = 0); //level is used internally only - void copyFolderAttributes(const Zstring& source, const Zstring& target); + void createDirectory(const Zstring& directory, const Zstring& templateDir, const bool copyDirectorySymLinks); +#ifdef FFS_LINUX + //callback function for status updates whily copying + typedef void (*CopyFileCallback)(const wxULongLong& totalBytesTransferred, void* data); -#ifdef FFS_WIN - bool isFatDrive(const Zstring& directoryName); -#endif //FFS_WIN + void copyFile(const Zstring& sourceFile, + const Zstring& targetFile, + const bool copyFileSymLinks, + CopyFileCallback callback = NULL, + void* data = NULL); +#endif } |