summaryrefslogtreecommitdiff
path: root/FreeFileSync/Source/afs/native.cpp
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2021-01-04 13:48:35 +0000
committerB Stack <bgstack15@gmail.com>2021-01-04 13:48:35 +0000
commitedb1c4482c0a0d91bddfee6e1f9fce234e59840a (patch)
tree494f9fc32eeee34c6c46611ae0137c25a79517a4 /FreeFileSync/Source/afs/native.cpp
parentMerge branch '11.4' into 'master' (diff)
parentadd upstream 11.5 (diff)
downloadFreeFileSync-edb1c4482c0a0d91bddfee6e1f9fce234e59840a.tar.gz
FreeFileSync-edb1c4482c0a0d91bddfee6e1f9fce234e59840a.tar.bz2
FreeFileSync-edb1c4482c0a0d91bddfee6e1f9fce234e59840a.zip
Merge branch '11.5' into 'master'11.5
add upstream 11.5 See merge request opensource-tracking/FreeFileSync!29
Diffstat (limited to 'FreeFileSync/Source/afs/native.cpp')
-rw-r--r--FreeFileSync/Source/afs/native.cpp12
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
}
//----------------------------------------------------------------------------------------------------------------
bgstack15