Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: How to determine if File or Directory is hidden

Java: How to determine if File or Directory is hidden
{filelink=7770}

import java.io.File;
public class File_Modes
 {
  public static void main(String[] args) {
    File file = new File("C:/test.txt");
    System.out.println(file+(file.isHidden()?" hidden":" is visible"));
  }
}

Users who found this page were searching for:

  • how to create a class in python
  • python subtract seconds
  • python compare strings
  • DBMS File delete
  • how to download the file from ftp server using java
  • java calendar time in 12hr
  • display a calendar java
  • java create
  • how to get last modified date in ftp using perl
  • tkinter rollover

No comments yet.

Leave a Comment