Skip to content

Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit

320 B
Raw Blame
import Foundation

enum Clean {

    static let backupSuffix = "notproton-orig"

    static func copy(of file: URL) -> URL {
        let backup = file.appendingPathExtension(backupSuffix)
        if FileManager.default.fileExists(atPath: backup.path(percentEncoded: false)) { return backup }
        return file
    }
}