-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
crash in LegacyICloudFilePicker.swift >controller = DocumentPickerViewController(forExporting: [url], asCopy: true) while url is not exists !
in SaveMediaToFiles.swift > _ = try? FileManager.default.linkItem(atPath: data.path, toPath: symlinkPath) link. fail
why?
read info as file path from audio metadata, but some audio metadata contain '/' such as "abc/def" ,directory will not not create yet, so ,copy fail
nameComponents = ["abc/def","hello"]
if !nameComponents.isEmpty {
try? FileManager.default.removeItem(atPath: symlinkPath)
let fileName = "\(nameComponents.joined(separator: " – ")).\(fileExtension)" <---- abc/def-hello.mp3
symlinkPath = symlinkPath.replacingOccurrences(of: audioUrl.lastPathComponent, with: fileName) <--- xxxx/xxxx/abc/def-hello.mp3
let _ = try? FileManager.default.linkItem(atPath: data.path, toPath: symlinkPath) <--- directory not exists ! link fail
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working