I making an app and need to find and access to hidden files. The files names start with a dot (.).Ex: in internal storage, I have a folder containing 3 hidden files. But when I get a list of folder files, return nothing. I use this code for getting the list of files
File root =android.os.Environment.getExternalStorageDirectory();
File Dir = new File(root.getAbsolutePath()+"/DCIM/Camera");
Dir.listFiles()
How I can get the list files that contain hidden files and files hidden by dot name =>.Name
FileManager apps have an option to unhide files. If enable it you can see any hidden file in any directory, I need that
Thanks.
Files starting with "." are hidden by convention, not by the file system itself. If those files exist then your code should already be listing them.
Those FileManager apps generally behave like your operating system would and hide files starting with "." because users expect them to be hidden, it is not a behavior that is caused by the File
api.