• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to find hidden files in java?

 
Henry Dai
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I try to use to File.list() to list all the files under a folder, but it can not find hidden files. Is there any way to find the hidden ones. Thanks!
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both list() and listFiles() work just fine for me:
Both print out hidden and system files like autoexec.bat (hidden) and pagefile.sys (system).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!