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
Self.logger.fault("Failed to resolve the file provider extension data directory!")
76
76
assertionFailure("Failed to resolve the file provider extension data directory!")
77
77
return manager.temporaryDirectory // Only to satisfy the non-optional return type. The extension is unusable at this point anyway.
@@ -108,13 +108,20 @@ public final class FilesDatabaseManager: Sendable {
108
108
/// - account: The Nextcloud account for which the database is being created.
109
109
/// - customDatabaseDirectory: Optional custom directory where the database files should be stored. If not provided, the default directory will be used.
/// Return the sandboxed application support directory specific to the file provider domain distinguished by the given identifier.
7
+
///
8
+
/// If such directory does not exist yet, this attempts to create it implicitly.
9
+
///
10
+
/// > Legacy Support: In the past, a subdirectory in the application group container was used for everything.
11
+
/// This caused crashes due to violations of sandbox restrictions.
12
+
/// If already existent, the legacy location will be used.
13
+
/// Otherwise the data will be stored in a new location.
14
+
///
15
+
/// - Parameters:
16
+
/// - identifier: File provider domain identifier which is used to isolate application support data for different file provider domains of the same extension.
17
+
///
18
+
/// - Returns: A directory based on what the system returns for looking up standard directories. Likely in the sandbox containers of the file provider extension. Very unlikely to fail by returning `nil`.
/// Resolve the path where the file provider extension store its data.
37
-
///
38
-
/// In the past, this used a subdirectory in the application group container.
39
-
/// If already existent, this will still be used.
40
-
/// Otherwise the data will be stored in a new location.
41
-
/// To comply with sandboxing and conventional directory structure of the platform, this uses the dedicated application support directory in the container of the file provider extension instead.
42
-
///
43
-
/// - Returns: The root location in which the extension can store its specific data.
0 commit comments