Last active
September 21, 2017 23:07
-
-
Save koral--/4e7ee18b1742769995b77aba18e09087 to your computer and use it in GitHub Desktop.
Dangling link - https://repl.it/LN4s/1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.nio.file.Files | |
import java.nio.file.Path | |
import java.nio.file.Paths | |
val path = Paths.get("foo") | |
Files.createSymbolicLink(path, path) | |
println("exists : ${path.toFile().exists()}") | |
println("isFile : ${path.toFile().isFile()}") | |
println("isDirectory : ${path.toFile().isDirectory()}") | |
println("createNewFile: ${path.toFile().createNewFile()}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment