WebNFS Developer's Guide

How Can I Tell If a File Is "Hidden"?

XFile has no method to determine the "hiddenness: of a file; that is, there is no isHidden() method. It is difficult to implement for native filesystems because java.io.* provides no access to the "hidden" bit on DOS/Windows filesystems. NFS clients typically recognize hidden files using the UNIX convention of an initial dot in the name, though this is just a convention and not supported directly by the NFS protocol. In summary, there is no way to tell if a DOS/Windows file is hidden, but an initial dot is a clue to the "hiddenness" of a UNIX file.