Update linux-tests; fail if warnings on travis
* Update linux-tests; fail if warnings on travis * Fix warnings on Linux * Typo * Can’t test these on Linux
This commit is contained in:
@@ -30,7 +30,7 @@ public extension Pathish {
|
||||
try FileManager.default.removeItem(at: to.url)
|
||||
}
|
||||
#if os(Linux) && !swift(>=5.2) // check if fixed
|
||||
if !overwrite, to.kind != nil {
|
||||
if !overwrite, to.type != nil {
|
||||
throw CocoaError.error(.fileWriteFileExists)
|
||||
}
|
||||
#endif
|
||||
@@ -70,7 +70,7 @@ public extension Pathish {
|
||||
try FileManager.default.removeItem(at: rv.url)
|
||||
}
|
||||
#if os(Linux) && !swift(>=5.2) // check if fixed
|
||||
if !overwrite, rv.kind != nil {
|
||||
if !overwrite, rv.type != nil {
|
||||
throw CocoaError.error(.fileWriteFileExists)
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -13,7 +13,7 @@ public extension Path {
|
||||
|
||||
private let enumerator: FileManager.DirectoryEnumerator!
|
||||
|
||||
/// The range of directory depths for which the find operation will return entries.b
|
||||
/// The range of directory depths for which the find operation will return entries.
|
||||
private(set) public var depth: ClosedRange<Int> = 1...Int.max
|
||||
|
||||
/// The kinds of filesystem entries find operations will return.
|
||||
|
||||
Reference in New Issue
Block a user