diff --git a/Sources/libChoco/ChocoMuxer.swift b/Sources/libChoco/ChocoMuxer.swift index 4bbfb30..91331bf 100644 --- a/Sources/libChoco/ChocoMuxer.swift +++ b/Sources/libChoco/ChocoMuxer.swift @@ -323,6 +323,11 @@ extension ChocoMuxer { let inputInfo = IOFileInfo(path: currentFileURL) let startTime = Date() + // macOS resource files + if currentFileURL.lastPathComponent == ".DS_Store" || currentFileURL.lastPathComponent.hasPrefix("._") { + return + } + if options.fileTypes.contains(currentFileURL.pathExtension.lowercased()) { // remux let outputResult = self.withTemporaryDirectory { tempDirectory in @@ -331,9 +336,6 @@ extension ChocoMuxer { files.append(.init(input: inputInfo, output: outputResult, timeSummary: .init(startTime: startTime))) } else { // copy - if currentFileURL.lastPathComponent == ".DS_Store" { - return - } if options.copyNormalFiles { let outputResult: Result let dstPath = outputDirectoryURL.appendingPathComponent(currentFileURL.lastPathComponent)