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
/// Check for the existence of the directory where to place database files and attempt to create it if it does not exist yet.
65
+
/// Check for the existence of the directory where to place database files and return it.
66
66
///
67
-
/// - Returns: The location of the database files directory. Otherwise, failing assertions cause a crash because the extension would be completely dysfunctional anyway.
67
+
/// - Returns: The location of the database files directory.
68
68
///
69
69
privatestaticfunc assertDatabaseDirectory()->URL{
70
70
Self.logger.debug("Asserting existence of database directory...")
Self.logger.fault("Failed to create database directory at \"\(databaseDirectory.path, privacy:.public)\" because of error: \(error.localizedDescription, privacy:.public)")
97
-
assertionFailure("Failed to ensure file provider extension database directory exists as expected!")
98
-
}
86
+
Self.logger.info("Due to nonexistent \"Database\" directory, assume it is not a legacy location and returning file provider extension data directory at: \(fileProviderExtensionDataDirectory.path, privacy:.public)")
87
+
return fileProviderExtensionDataDirectory
99
88
}
100
89
101
90
// Disable file protection for database directory.
0 commit comments