You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: shell_integration/MacOSX/NextcloudFileProviderKit/Sources/NextcloudFileProviderKit/Database/FilesDatabaseManager+Directories.swift
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ public extension FilesDatabaseManager {
40
40
returnnil
41
41
}
42
42
43
-
// Deletes all metadatas related to the info of the directory provided
43
+
/// Deletes all metadatas related to the info of the directory provided
44
44
func deleteDirectoryAndSubdirectoriesMetadata(
45
45
ocId:String
46
46
)->[SendableItemMetadata]?{
@@ -126,7 +126,8 @@ public extension FilesDatabaseManager {
Copy file name to clipboardExpand all lines: shell_integration/MacOSX/NextcloudFileProviderKit/Sources/NextcloudFileProviderKit/Database/FilesDatabaseManager.swift
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,9 @@ public final class FilesDatabaseManager: Sendable {
Copy file name to clipboardExpand all lines: shell_integration/MacOSX/NextcloudFileProviderKit/Sources/NextcloudFileProviderKit/Enumeration/Enumerator+SyncEngine.swift
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,9 @@ extension Enumerator {
29
29
return(metadatas,nil)
30
30
}
31
31
32
-
// With paginated requests, you do not have a way to know what has changed remotely when
33
-
// handling the result of an individual PROPFIND request. When handling a paginated read this
34
-
// therefore only returns the acquired metadatas.
32
+
/// With paginated requests, you do not have a way to know what has changed remotely when
33
+
/// handling the result of an individual PROPFIND request. When handling a paginated read this
34
+
/// therefore only returns the acquired metadatas.
35
35
staticfunc handleDepth1ReadFileOrFolder(
36
36
serverUrl:String,
37
37
account:Account,
@@ -92,19 +92,19 @@ extension Enumerator {
92
92
)
93
93
}
94
94
95
-
// READ THIS CAREFULLY.
96
-
//
97
-
// This method supports paginated and non-paginated reads. Handled by the pageSettings argument.
98
-
// Paginated reads is used by enumerateItems, non-paginated reads is used by enumerateChanges.
99
-
//
100
-
// Paginated reads WILL NOT HANDLE REMOVAL OF REMOTELY DELETED ITEMS FROM THE LOCAL DATABASE.
101
-
// Paginated reads WILL ONLY REPORT THE FILES DISCOVERED REMOTELY.
102
-
// This means that if you decide to use this method to implement change enumeration, you will
103
-
// have to collect the full results of all the pages before proceeding with discovering what
104
-
// has changed relative to the state of the local database -- manually!
105
-
//
106
-
// Non-paginated reads will update the database with all of the discovered files and folders
107
-
// that have been found to be created, updated, and deleted. No extra work required.
95
+
/// READ THIS CAREFULLY.
96
+
///
97
+
/// This method supports paginated and non-paginated reads. Handled by the pageSettings argument.
98
+
/// Paginated reads is used by enumerateItems, non-paginated reads is used by enumerateChanges.
99
+
///
100
+
/// Paginated reads WILL NOT HANDLE REMOVAL OF REMOTELY DELETED ITEMS FROM THE LOCAL DATABASE.
101
+
/// Paginated reads WILL ONLY REPORT THE FILES DISCOVERED REMOTELY.
102
+
/// This means that if you decide to use this method to implement change enumeration, you will
103
+
/// have to collect the full results of all the pages before proceeding with discovering what
104
+
/// has changed relative to the state of the local database -- manually!
105
+
///
106
+
/// Non-paginated reads will update the database with all of the discovered files and folders
107
+
/// that have been found to be created, updated, and deleted. No extra work required.
Copy file name to clipboardExpand all lines: shell_integration/MacOSX/NextcloudFileProviderKit/Sources/NextcloudFileProviderKit/Enumeration/Enumerator.swift
// Skip server requests for locally created lock files.
421
+
// They are not synchronized to the server for real.
422
+
// Thus they can be expected not to be found there.
423
+
// That would also cause their local deletion due to synchronization logic.
424
+
logger.debug("Skipping materialized item in working set check because the name hints a lock file.",[.item: materializedItem,.name: materializedItem.name])
// OPTIMIZATION: For any child directories returned in this enumeration, if they haven't changed (etag matches database), mark them as examined so we don't enumerate them separately later.
// Run a check to ensure files deleted in one location are not updated in another (e.g. when moved).
498
+
// The recursive scan provides us with updated/deleted metadatas only on a folder by folder basis; so we need to check we are not simultaneously marking a moved file as deleted and updated.
0 commit comments