diff --git a/Sources/MusicLibrary/Process/CopyProcessor.swift b/Sources/MusicLibrary/Process/CopyProcessor.swift index e57f586..477999c 100644 --- a/Sources/MusicLibrary/Process/CopyProcessor.swift +++ b/Sources/MusicLibrary/Process/CopyProcessor.swift @@ -20,6 +20,7 @@ public struct CopyProcessor: LibraryProcessor { if let newURL, let oldURL { progress.update(current: i, message: "Copying to \(newURL)...") + try FileManager.default.createDirectory(at: newURL.deletingLastPathComponent(), withIntermediateDirectories: true) try FileManager.default.copyItem(at: oldURL, to: newURL) var newTrack = track