Skip to content

Commit

Permalink
Doc comment on link
Browse files Browse the repository at this point in the history
Former-commit-id: d2c0a7a
  • Loading branch information
kjessup committed Jan 17, 2017
1 parent b39bca9 commit a9ab035
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/PerfectLib/File.swift
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ public extension File {
return (Int32(mode) & Int32(S_IFMT)) == Int32(S_IFLNK)
}

/// Create a symlink from the target to the destination.
@discardableResult
public func linkTo(path: String, overWrite: Bool = false) throws -> File {
let destFile = File(path)
Expand Down

0 comments on commit a9ab035

Please sign in to comment.