We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b39bca9 commit a9ab035Copy full SHA for a9ab035
Sources/PerfectLib/File.swift
@@ -390,6 +390,7 @@ public extension File {
390
return (Int32(mode) & Int32(S_IFMT)) == Int32(S_IFLNK)
391
}
392
393
+ /// Create a symlink from the target to the destination.
394
@discardableResult
395
public func linkTo(path: String, overWrite: Bool = false) throws -> File {
396
let destFile = File(path)
0 commit comments