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 1afd89b commit d5a9eb1Copy full SHA for d5a9eb1
src/main/kotlin/ch/tutteli/niok/PathDelegateToFiles.kt
@@ -59,6 +59,11 @@ inline fun Path.deleteIfExists(): Boolean = Files.deleteIfExists(this)
59
*/
60
inline val Path.exists get(): Boolean = Files.exists(this)
61
62
+/**
63
+ * Assumes that this path [Path.isSymbolicLink] and delegates to [Files.readSymbolicLink].
64
+ */
65
+inline fun Path.followSymbolicLink() = Files.readSymbolicLink(this)
66
+
67
/**
68
* Delegates to [Files.isDirectory] without [LinkOption]s.
69
0 commit comments