0

I have an issue in a folder were some files, that was recently put there by an installer, does not show in Finder. Files are not hidden (ls -Ol), they show in Terminal, and has the same file permissions as other files in the same folder. The only difference between the files are that they were recently put there by a .pkg installer.

To refresh the state of files in the folder, I need to use the search-function in Finder. After being searched for, the files become visible.

I looked through AD to check if there were others that has the same issue, but the only question I found was this - Finder does not show files in folders and this What would cause normal files to be hidden from the Finder but not the terminal? - and the answers there did not solve my issue.

Did anyone see the same problem as I did and know how to solve it permanently without needing to use the search-function?

I use Yosemite 10.10.5.

  • Do the files have a period in front of them? eg: ".MyFile" – MorganR Nov 19 '15 at 15:28
  • No, it seems like it could be any filename – Joachim Bratteli Nov 19 '15 at 15:33
  • Ok, have you tried opening Terminal and typing this command?: chflags nohidden /path/to/hidden/file – MorganR Nov 19 '15 at 15:35
  • Thanks for the suggestion @MorganR , but using the chflags utility did not help me. I did not know about the chflags utility. Nice to know if I want to change flags for files. – Joachim Bratteli Nov 20 '15 at 8:19
1

I've heard of this happening before, but can't put my hands on a link right now.

Try this applescript, save it as an App
It refreshes the contents of all open Finder windows by switching them to another view then back again.

tell application "Finder"
    set theWindows to every window
    repeat with i from 1 to number of items in theWindows
        set this_item to item i of theWindows
        set theView to current view of this_item
        if theView is list view then
            set current view of this_item to icon view
        else
            set current view of this_item to list view          
        end if
        set current view of this_item to theView
    end repeat
end tell

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .