diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Extensions/NKError+Extensions.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Extensions/NKError+Extensions.swift index b8f912ab0..c82162e85 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Extensions/NKError+Extensions.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Extensions/NKError+Extensions.swift @@ -17,6 +17,12 @@ import FileProvider import NextcloudKit extension NKError { + static var noChangesErrorCode: Int { + get { + return -200 + } + } + var isCouldntConnectError: Bool { get { let nkErrorCode = self.errorCode @@ -52,6 +58,12 @@ extension NKError { } } + var isNoChangesError: Bool { + get { + return self.errorCode == NKError.noChangesErrorCode + } + } + func toFileProviderError() -> NSFileProviderError { if self.isNotFoundError { return NSFileProviderError(.noSuchItem)