Groovy file and directory attributes
examples/groovy/file.groovy
if (args.size() < 1) { println("Missing filename") System.exit(1) } name = args[0] fh = new File(name) println("file : " + fh.isFile()) println("dir : " + fh.isDirectory()) println("executable: " + fh.canExecute())
See also File

Published on 2019-04-16
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.
Comment on this post