diff options
author | B Stack <bgstack15@gmail.com> | 2021-01-04 08:08:11 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2021-01-04 08:08:11 -0500 |
commit | f9a264860c23b8381adbc0b9766e1b677a07da78 (patch) | |
tree | 494f9fc32eeee34c6c46611ae0137c25a79517a4 /FreeFileSync/Source/afs/native.cpp | |
parent | Merge branch '11.4' into 'master' (diff) | |
download | FreeFileSync-f9a264860c23b8381adbc0b9766e1b677a07da78.tar.gz FreeFileSync-f9a264860c23b8381adbc0b9766e1b677a07da78.tar.bz2 FreeFileSync-f9a264860c23b8381adbc0b9766e1b677a07da78.zip |
add upstream 11.5
Diffstat (limited to 'FreeFileSync/Source/afs/native.cpp')
-rw-r--r-- | FreeFileSync/Source/afs/native.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/FreeFileSync/Source/afs/native.cpp b/FreeFileSync/Source/afs/native.cpp index 68a01d04..1f8b33f6 100644 --- a/FreeFileSync/Source/afs/native.cpp +++ b/FreeFileSync/Source/afs/native.cpp @@ -113,7 +113,7 @@ std::vector<FsItem> getDirContentFlat(const Zstring& dirPath) //throw FileError continue; if (itemNameRaw[0] == 0) //show error instead of endless recursion!!! - throw FileError(replaceCpy(_("Cannot read directory %x."), L"%x", fmtPath(dirPath)), formatSystemError("readdir", L"", L"Folder contains child item without a name.")); + throw FileError(replaceCpy(_("Cannot read directory %x."), L"%x", fmtPath(dirPath)), formatSystemError("readdir", L"", L"Folder contains an item without name.")); output.push_back({ itemNameRaw }); @@ -274,7 +274,7 @@ void traverseFolderRecursiveNative(const std::vector<std::pair<Zstring, std::sha //==================================================================================================== //==================================================================================================== -class RecycleSessionNative : public AbstractFileSystem::RecycleSession +class RecycleSessionNative : public AFS::RecycleSession { public: RecycleSessionNative(const Zstring& baseFolderPath) : baseFolderPath_(baseFolderPath) {} @@ -288,7 +288,7 @@ private: //=========================================================================================================================== -struct InputStreamNative : public AbstractFileSystem::InputStream +struct InputStreamNative : public AFS::InputStream { InputStreamNative(const Zstring& filePath, const IOCallback& notifyUnbufferedIO /*throw X*/) : fi_(filePath, notifyUnbufferedIO) {} //throw FileError, ErrorFileLocked @@ -315,7 +315,7 @@ private: //=========================================================================================================================== -struct OutputStreamNative : public AbstractFileSystem::OutputStreamImpl +struct OutputStreamNative : public AFS::OutputStreamImpl { OutputStreamNative(const Zstring& filePath, std::optional<uint64_t> streamSize, @@ -407,7 +407,7 @@ private: std::optional<ItemType> itemStillExists(const AfsPath& afsPath) const override //throw FileError { //default implementation: folder traversal - return AbstractFileSystem::itemStillExists(afsPath); //throw FileError + return AFS::itemStillExists(afsPath); //throw FileError } //---------------------------------------------------------------------------------------------------------------- @@ -441,7 +441,7 @@ private: const std::function<void (const std::wstring& displayPath)>& onBeforeFolderDeletion) const override //one call for each object! { //default implementation: folder traversal - AbstractFileSystem::removeFolderIfExistsRecursion(afsPath, onBeforeFileDeletion, onBeforeFolderDeletion); //throw FileError, X + AFS::removeFolderIfExistsRecursion(afsPath, onBeforeFileDeletion, onBeforeFolderDeletion); //throw FileError, X } //---------------------------------------------------------------------------------------------------------------- |