diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:56:34 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 16:56:34 +0200 |
commit | 9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca (patch) | |
tree | 61e2edc315a164d6fa3940b7de4b14dda0a9838c /library/fileHandling.h | |
parent | 1.15 (diff) | |
download | FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.tar.gz FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.tar.bz2 FreeFileSync-9084fa27f0f43cfa31dbc3a7ef87e2600c2dc3ca.zip |
1.16
Diffstat (limited to 'library/fileHandling.h')
-rw-r--r-- | library/fileHandling.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/library/fileHandling.h b/library/fileHandling.h index 5578ce91..7a1b1842 100644 --- a/library/fileHandling.h +++ b/library/fileHandling.h @@ -8,7 +8,8 @@ class FileError //Exception class used to notify file/directory copy/delete errors { public: - FileError(const Zstring& txt) : errorMessage(txt) {} + FileError(const Zstring& message) : + errorMessage(message) {} Zstring show() const { @@ -22,20 +23,6 @@ private: namespace FreeFileSync { - void getAllFilesAndDirs(const Zstring& sourceDir, std::vector<Zstring>& files, std::vector<Zstring>& directories) throw(FileError); - - //recycler - bool recycleBinExists(); //test existence of Recycle Bin API on current system - - //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); - -//################################ - //custom traverser with detail information about files - struct FileInfo { wxULongLong fileSize; //unit: bytes! @@ -52,8 +39,22 @@ namespace FreeFileSync virtual wxDirTraverseResult OnError(const Zstring& errorText) = 0; }; - bool traverseInDetail(const Zstring& directory, FullDetailFileTraverser* sink, const int level = 0); //return value and level are used internally only -//################################ + //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); + + //recycler + bool recycleBinExists(); //test existence of Recycle Bin API on current system + + //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); + +#ifdef FFS_WIN + bool isFatDrive(const Zstring& directoryName); +#endif //FFS_WIN } |