new java.io.File(....).isHidden()  可以获得是否是隐藏属性.
我想把某个文件属性改为隐藏. 如何实现????为什么没有 setHidden(boolean bool) 方法呢!!

解决方案 »

  1.   

    File类中有查看文件属性的方法,但是改变这些属性的没有几个
      

  2.   

    The exact definition of hidden is system-dependent. On UNIX systems, a file is considered to be hidden if its name begins with a period character ('.'). On Microsoft Windows systems, a file is considered to be hidden if it has been ed as such in the filesystem.你的是在什么系统下面的?