Skip to content

Commit

Permalink
Remove touchPath (#34)
Browse files Browse the repository at this point in the history
* Remove touchPath

* oops theres more
  • Loading branch information
dduan committed Dec 18, 2018
1 parent 587844b commit 514095c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Sources/Pathos/manipulate.swift
Expand Up @@ -77,13 +77,6 @@ public func movePath(_ path: String, to other: String) throws {
}
}

// TODO: missing implementation.
// TODO: missing unit tests.
// TODO: missing docstring.
public func touchPath(_ path: String, permission: FilePermission = 0x0666, existOkay: Bool = true) throws {
fatalError("unimplemented")
}

extension PathRepresentable {
/// Create a directory at `pathString`.
///
Expand Down Expand Up @@ -127,15 +120,4 @@ extension PathRepresentable {
}
return true
}

// TODO: missing unit tests.
// TODO: missing docstring.
public func touch(permission: FilePermission = 0x0666, existOkay: Bool = true) -> Bool {
do {
try touchPath(_:permission:existOkay:)(self.pathString, permission, existOkay)
} catch {
return false
}
return true
}
}

0 comments on commit 514095c

Please sign in to comment.