File tree Expand file tree Collapse file tree
Sources/NextcloudFileProviderKit/Item Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -854,6 +854,25 @@ public extension Item {
854854 Will delete locally with no remote effect.
855855 """
856856 )
857+ guard let modifiedIgnored = modifyUnuploaded (
858+ itemTarget: itemTarget,
859+ baseVersion: baseVersion,
860+ changedFields: changedFields,
861+ contents: newContents,
862+ options: options,
863+ request: request,
864+ ignoredFiles: ignoredFiles,
865+ domain: domain,
866+ forcedChunkSize: forcedChunkSize,
867+ progress: progress,
868+ dbManager: dbManager
869+ ) else {
870+ Self . logger. error (
871+ " Unable to modify ignored file, got nil item: \( relativePath, privacy: . public) "
872+ )
873+ return ( nil , NSFileProviderError ( . cannotSynchronize) )
874+ }
875+ modifiedItem = modifiedIgnored
857876 if #available( macOS 13 . 0 , * ) {
858877 return ( modifiedItem, NSFileProviderError ( . excludedFromSync) )
859878 } else {
You can’t perform that action at this time.
0 commit comments