4 Replies Latest reply: Feb 14, 2008 3:11 PM by 807603 RSS

    DirFilter won't return files with no extension

    807603
      How can I get a DirFilter to return ALL files in a directory, even those which have no extension?

      Right now, this works MOST of the time, but any time a file has no extension, it may as well be invisible.

      Is there any way to fix this?

      Thanks,

      Matthew

                  File fileHandle = new File("C:\Folder");
                  String files[] = fileHandle.list(new DirFilter("."));