Questions tagged [hidden-files]

A file that is normally not visible for the user, unless the user requires to show the hidden files. It is still accessible by name and path as any other file.

A file that is normally not visible for the user, unless the user requires to show the hidden files by turning a setting in file explorer or using additional switch with command line tools. It is still accessible by name and path as any other file.

Windows systems have a true hidden file attribute allowing to hide file having any name. Unix systems (like Linux) do not have such attribute and instead hides all files whose names start from dot (like .ssh). Unix command ls requires an -a switch to list such files and folders.

Hiding files may result more user friendly behavior but it is also a method to mask viruses and other exploits.

214 questions
-2
votes
2 answers

How to delete a hidden file in Java?

File[] hiddenFiles = directory.listFiles((FileFilter) HiddenFileFilter.HIDDEN); for (File hiddenFile : hiddenFiles) { String hidden = hiddenFile.getCanonicalPath(); File file = new File(hidden); file.deleteOnExit(); } I tried this one for…
Guru
  • 411
  • 3
  • 20
-3
votes
1 answer

Why are some of my source files being hidden by CLion?

I'm using CLion 2022.1 to work on a (C++) project. In this project, I have files named src/foo/build.hpp and src/bar/build.hpp. These files are included from the main() translation unit, and are even listed as sources in the CMake add_executable()…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
-4
votes
1 answer

Protection program for files and folders

The project is a security program that locks files and folders using Java I have two ideas: First: Hiding the file or folder in Windows Kernel level I cannot find a way to do this at this moment. How can I do this? Are there any helpful tips? …
-4
votes
1 answer

read hidden file

Is it possible to read file with attribute hidden in program? I know the path to file. For example, if I copy a file to some place and set the attribute hidden: File.Copy("sender.exe", path+"system.exe"); File.SetAttributes(path + "sender.exe",…
lapots
  • 12,553
  • 32
  • 121
  • 242
1 2 3
14
15