Skip to content

Instantly share code, notes, and snippets.

@koral--
Last active September 21, 2017 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koral--/7f16405c685417720ac6e84b8526b150 to your computer and use it in GitHub Desktop.
Save koral--/7f16405c685417720ac6e84b8526b150 to your computer and use it in GitHub Desktop.
Special files - https://repl.it/LNWW/1
import java.io.File
val file = File("/dev/null")
println("exists: ${file.exists()}")
println("isFile: ${file.isFile()}")
println("isDirectory: ${file.isDirectory()}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment