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
125
votes
8 answers

How to ignore hidden files using os.listdir()?

My python script executes an os.listdir(path) where the path is a queue containing archives that I need to treat one by one. The problem is that I'm getting the list in an array and then I just do a simple array.pop(0). It was working fine until I…
talnicolas
  • 13,885
  • 7
  • 36
  • 56
122
votes
9 answers

How can I grep hidden files?

I am searching through a Git repository and would like to include the .git folder. grep does not include this folder if I run grep -r search * What would be a grep command to include this folder?
Zombo
  • 1
  • 62
  • 391
  • 407
109
votes
8 answers

Zip including hidden files

In Linux I can zip all(except hidden files) in current directory by doing: zip 1.zip * But how do I include the hidden files?
john-jones
  • 7,490
  • 18
  • 53
  • 86
52
votes
14 answers

PhpStorm hides directories in Project window

I'm using PhpStorm 6.0.3, and it doesn't show any directories in the Project Tool Window. They were there just a minute ago but I managed to make them disappear by clicking or shortkey on accident. They are there in the file system - I see them in…
Jelmer Keij
  • 1,576
  • 1
  • 19
  • 33
45
votes
11 answers

Exclude hidden files from scandir

I am using the following code to get a list of images in a directory: $files = scandir($imagepath); but $files also includes hidden files. How can I exclude them?
Sino
  • 970
  • 3
  • 12
  • 27
42
votes
3 answers

How to add .gitignore file into Xcode project

When making sure that iPhone project could be installed as an exact copy into a brand new computer via version control (git), I just realized that .gitignore file was missing. Added under version control, but now would like to add that file also…
JOM
  • 8,139
  • 6
  • 78
  • 111
30
votes
3 answers

IOError: [Errno 13] Permission denied when trying to open hidden file in "w" mode

I want to replace the contents of a hidden file, so I attempted to open it in w mode so it would be erased/truncated: >>> import os >>> ini_path = '.picasa.ini' >>> os.path.exists(ini_path) True >>> os.access(ini_path, os.W_OK) True >>> ini_handle =…
zedex
  • 311
  • 1
  • 3
  • 7
28
votes
7 answers

archiving hidden directories with tar

tar on a directory mydir will archive hidden files and hidden subdirectories, but tar from within mydir with a * wildcard will not. Is this a known inconsistency or bug? Edit: Additional information. tar from within mydir with a * wildcard will not…
H2ONaCl
  • 10,644
  • 14
  • 70
  • 114
21
votes
1 answer

Show hidden (.files) in AndroidStudio's Device File Explorer

In a project we have a "hidden" folder (a folder which name starts with a '.') on the device. Accessing it from Code is no Problem, but in AndroidStudios "Device File Explorer" I cannot find an option that displays unix hidden files. Using adb…
Rafael T
  • 15,401
  • 15
  • 83
  • 144
20
votes
2 answers

Show hidden files in cloud9.io

I am developing a node.js application with cloud9 online IDE. I need to edit the .gitignore file, but I can not see it because it is a hidden file. Does anybody knows how to show hidden files in the cloud9 file tree?
Francisco Fischer
  • 289
  • 1
  • 4
  • 11
19
votes
5 answers

Python glob include hidden files and folders

I try to loop over all files matching a certain extension, including those inside hidden folders. So far I haven't found a way to do this with iglob. This works for all folder except those starting with a dot: import glob for filename in…
SeeDoubleYou
  • 1,253
  • 2
  • 15
  • 25
17
votes
1 answer

Android: Is there a way to create hidden folders and hidden files?

I am a newbie android developer. I need to know if there is a way to create hidden folders and hidden files in android programatically. There must be a way to create hidden folders in sdcard. But I don't know how? Any help is appreciated. Thanks.
Vivek
  • 4,526
  • 17
  • 56
  • 69
16
votes
3 answers

Windows 7: AppData folder not visible in windows explorer

I am somewhat new to Windows 7. I am running a foreign language version of Windows 7 (not sure if this matters or not). Anyways, when I use cmd to run a command prompt environment and C:\Users\MyUserNameHere> dir I don't see the folder named…
John Goche
  • 689
  • 2
  • 12
  • 27
15
votes
4 answers

How to zip / archive hidden files using Compress-Archive?

When zipping folders using Compress-Archive it skips all hidden files. The Documentation page tells us that this cmdlet uses Microsoft .NET Framework API System.IO.Compression.ZipArchive in the background. Is there some way to force it to archive…
GuidedHacking
  • 3,628
  • 1
  • 9
  • 59
13
votes
1 answer

Why do glob.glob and pathlib.Path.glob treat hidden files differently?

Consider this folder containing two files: test/ foo .bar Calling glob.glob('*') on this folder won't list the hidden .bar file: >>> glob.glob('test/*') ['test/foo'] But pathlib.Path.glob('*') will: >>>…
Aran-Fey
  • 39,665
  • 11
  • 104
  • 149
1
2 3
14 15