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 999fb0d commit bf60fefCopy full SHA for bf60fef
Sources/SwiftlyCore/FileManager+FilePath.swift
@@ -83,6 +83,10 @@ public enum FileSystem {
83
try FileManager.default.destinationOfSymbolicLink(atPath: atPath)
84
}
85
86
+ public static func isSymLink(atPath: FilePath) async throws -> Bool {
87
+ try FileManager.default.attributesOfItem(atPath: atPath.string)[.type] as? FileAttributeType == .typeSymbolicLink
88
+ }
89
+
90
public static func symlink(atPath: FilePath, linkPath: FilePath) async throws {
91
try FileManager.default.createSymbolicLink(atPath: atPath, withDestinationPath: linkPath)
92
0 commit comments