3

I copied some music off a friend's old iPod for him by mounting it and using Terminal to copy the "iPod Control" folder to my desktop (High Sierra).

However, that folder (the original, as well as the copy on my desktop) contains a "Music" folder that's invisible, and "Music" contains a bunch of other folders that are invisible. By "invisible" I mean that I can see them just fine in Terminal, but I can only see them in the Finder if I press Command-Option-. or run defaults write com.apple.finder AppleShowAllFiles TRUE.

My question is: how are these folders invisible? When I show them and do a "Get Info" on them, I don't see anything that would indicate that the Finder should hide them. They don't have a period at the start of their names. Even if I do a ls -l@ in Terminal I don't see anything unusual about them.

How do I un-set these folders' invisibility so that Finder will display them normally?

3

Files and folders can have the ‘hidden’ flag set.

  • ls can show flags with ls -lO (capital letter O).
  • Set the hidden flag with chflags hidden /path/to/file.
  • Remove the hidden flag with

    chflags nohidden /path/to/file
    
  • That looked promising, as ls -lO did show me that the folders had the "hidden" flag set on them. But I copied the music from the iPod (which is Windows-formatted) to my Desktop (cp -R /Volumes/JOHNS\ IPOD/iPod_Control/Music ~/Desktop), then cleared that flag (chflags nohidden ~/Desktop/Music), and the folder is still invisible (can still only be seen with the methods in my original post). I relaunched the Finder, and even rebooted; no luck. ls -lOd ~/Desktop/Music shows me - for the flags, so it's no longer hidden ... but it's still hidden. – Brian Kendig Jun 19 '18 at 1:15

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.