This article is quick tip to find hidden files in Java by checking hidden properties of a File or directory from Java Program. File Handling is a crucial topic in java already we have discussed about how to create file in java , how to create directory, how to read write in a text file in Java , how to set permissions on file and some more aspect and we will discuss one more property of file, i.e. hidden property. Now the question arise can we make a file Hidden using our java code or not. So the answer would be No-using java File API it’s not possible to make any file hidden because it’s a OS or platform dependent property.
· If we are working in UNIX environment then file is considered as Hidden if its name begins with “.”
· And if we are dealing with Windows environment then a file is hidden if we set file hidden property, and also it’s should not be a directory.