Still not fixed

This commit is contained in:
Max Howell
2019-07-21 18:01:03 -04:00
parent 462a62920f
commit e5188bf93b

View File

@@ -28,7 +28,7 @@ public extension Pathish {
if overwrite, let tokind = to.kind, tokind != .directory, kind != .directory { if overwrite, let tokind = to.kind, tokind != .directory, kind != .directory {
try FileManager.default.removeItem(at: to.url) try FileManager.default.removeItem(at: to.url)
} }
#if os(Linux) && !swift(>=5.1) // check if fixed #if os(Linux) && !swift(>=5.2) // check if fixed
if !overwrite, to.kind != nil { if !overwrite, to.kind != nil {
throw CocoaError.error(.fileWriteFileExists) throw CocoaError.error(.fileWriteFileExists)
} }
@@ -68,7 +68,7 @@ public extension Pathish {
if overwrite, let kind = rv.kind, kind != .directory { if overwrite, let kind = rv.kind, kind != .directory {
try FileManager.default.removeItem(at: rv.url) try FileManager.default.removeItem(at: rv.url)
} }
#if os(Linux) && !swift(>=5.1) // check if fixed #if os(Linux) && !swift(>=5.2) // check if fixed
if !overwrite, rv.kind != nil { if !overwrite, rv.kind != nil {
throw CocoaError.error(.fileWriteFileExists) throw CocoaError.error(.fileWriteFileExists)
} }