|
Java™ by example!
|
|
|
How do I determine if a file is hidden?
Whether a file is hidden or not, is filesystem dependent. On Windows, a file is hidden when it has been marked hidden. On UNIX, a file is hidden when it starts with a dot. The File class provides the method isHidden: Main.java:
prints out:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|