Tuesday 15 February 2011

java - How to hide system protected file in you file manager -


I use the file and FileSystemView sections to remove the diskinfo The problem I am is that when I get all the files in any directory, there are still files that have been secured to the system and I did not want to show them. So is there a way to check that this is a system protected file and then it is not showing up?

You can use the File.isHidden () method to hide hidden files Can find out. If you have to explicitly detect Windows system files, then you can do this in Java 7 through your NiO2 interface.

In the Java tutorial, see DOS file attributes to check the system flag



No comments:

Post a Comment