@@ -44,7 +44,7 @@ public func pathForAppGroupContainer() -> URL? {
4444///
4545public func pathForFileProviderExtData( ) -> URL ? {
4646 let containerUrl = pathForAppGroupContainer ( )
47- return containerUrl? . appendingPathComponent ( " FileProviderExt/ " )
47+ return containerUrl? . appendingPathComponent ( " FileProviderExt " )
4848}
4949
5050public func pathForFileProviderTempFilesForDomain( _ domain: NSFileProviderDomain ) throws -> URL ? {
@@ -56,7 +56,7 @@ public func pathForFileProviderTempFilesForDomain(_ domain: NSFileProviderDomain
5656 }
5757
5858 let fileProviderDataUrl = try fpManager. temporaryDirectoryURL ( )
59- return fileProviderDataUrl. appendingPathComponent ( " TemporaryNextcloudFiles/ " )
59+ return fileProviderDataUrl. appendingPathComponent ( " TemporaryNextcloudFiles " )
6060}
6161
6262///
@@ -65,7 +65,7 @@ public func pathForFileProviderTempFilesForDomain(_ domain: NSFileProviderDomain
6565/// - Parameters:
6666/// - filename: The filename to check.
6767///
68- /// - Returns: `true` if the filename is a lock file, `false`` otherwise.
68+ /// - Returns: `true` if the filename is a lock file, `false` otherwise.
6969///
7070public func isLockFileName( _ filename: String ) -> Bool {
7171 // Microsoft Office lock files
@@ -79,6 +79,8 @@ public func isLockFileName(_ filename: String) -> Bool {
7979///
8080/// Example for Microsoft Office: `MyDoc.docx` is extracted from `~$MyDoc.docx`.
8181/// Example for LibreOffice: `MyDoc.odt` is extracted from `.~lock.MyDoc.odt#`.
82+ ///
83+ /// - Returns: Either the original file name parsed from the given lock file name or `nil`, if it is not a recognized lock file format.
8284///
8385public func originalFileName( fromLockFileName lockFilename: String ) -> String ? {
8486 if lockFilename. hasPrefix ( " ~$ " ) {
0 commit comments