diff --git a/Sources/PlayerRecorder.swift b/Sources/PlayerRecorder.swift index 0363bf8..be8cec6 100644 --- a/Sources/PlayerRecorder.swift +++ b/Sources/PlayerRecorder.swift @@ -76,6 +76,7 @@ final class PlayerRecorder: NSObject { // 如果文件存在且有内容,仍然允许保存 let attrs = try? FileManager.default.attributesOfItem(atPath: tempURL.path) let fileSize = (attrs?[.size] as? Int64) ?? 0 + NSLog("[Recorder] File exists: %d, size: %lld", FileManager.default.fileExists(atPath: tempURL.path), fileSize) if fileSize > 0 { NSLog("[Recorder] File exists with size %lld, offering save dialog", fileSize) self?.showSaveDialog(tempURL: tempURL)