1

I'm writing a little script to help deal with my music library. During development, I encountered some unexpected files in my readout in certain artist folders along the lines of AlbumArtSmall.jpg, Folder.jpg, etc...

I had my program output the exact path of these files. I opened up python and had os. Listdir the directory that they're in. Sure enough, they're listed.

However, Windows Explorer cannot see them. I have Show hidden files and folders checked and it correctly shows all sorts of other hidden files.

Most strangely, when in a command prompt at the offending directory, typing 'dir' DOES NOT list the files. However, typing 'ls' - which calls ls from the MinGW toolkit, does list them, and this is further supported by the python example above.

What in the world could cause these regular files to be hidden to Explorer and even the 'dir' command...?

Oliver Salzburg
  • 86,445
  • 63
  • 260
  • 306
cemulate
  • 1,121
  • 4
  • 17
  • 21
  • Try DIR /A see if that works – barlop Sep 25 '11 at 06:18
  • 2
    Just DIR, never shows hidden files or system files(which are like hidden). DIR /A shows them both/all. DIR /AH(or /A:H) just shows hidden. DIR /AS (or /A:S) just shows system. And the ATTRIB command would also list all the files and their attributes. So try ATTRIB Too. – barlop Sep 25 '11 at 06:25

1 Answers1

7

Windows uses hidden meta files to make folder browsing faster. A classic example of this is the thumbs.db file that holds the thumbnails for the icons in the folder. If you want to see these files you will need to uncheck this box in folder options.

enter image description here

Scott Chamberlain
  • 30,694
  • 7
  • 96
  • 109
  • Your picture is extremely misleading. He wants that UNTICKED not ticked. Your text says it, but the picture doesn't. Extremely misleading – barlop Sep 25 '11 at 06:23
  • Thanks. Don't know how these files got the "S" attribute, but I dealt with it. – cemulate Sep 25 '11 at 06:46
  • 1
    Image changed.. – Moab Sep 25 '11 at 17:07
  • 1
    @Moab I thought the line "If you want to see these files you will need to uncheck this box in folder options." Explained the picture well enough. – Scott Chamberlain Sep 26 '11 at 13:50
  • We tend to be a little ocd here at SuperUser. – Moab Sep 26 '11 at 15:42
  • @user74757 They got set to S by Windows, it it part of the way windows handles folders with album art. Instead of generating the image for the folder every single time you view the page, it generates it once, sets the preview as a system file so it is not in your way, and only re-generates it when the folder content has changed. – Scott Chamberlain Sep 26 '11 at 16:03