I recently ran a MacOS update and when it was finished... my Desktop was empty! Not only that, when I browsed to the Desktop folder, everything appeared to be gone. I save a lot of work to my desktop, so I had a minor panic attack thinking the update deleted my files.
After looking at my Recent Files list, I tried to open a few documents that I knew were stored on the Desktop. They still existed. After further exploration, I found that all files and folders on my Desktop were somehow flagged as hidden.
Again, I have a lot of files and folders on my desktop. I know of the chgflags unhidden ...
command, but I have to call that for every single file and folder. I also know how to make hidden files visible within finder/terminal/Desktop UI, but I really would prefer to not have to do that and instead update each file and folder to not be hidden.
Is there a way to iterate through an entire directory and make all files permanently unhidden? Thanks.
EDIT
As requested, here are the results for running ls -lOe
on one of the files.
RLHMBP:desktop rlh$ ls -lOe Vows.jpg
-rw-------@ 1 rlh staff - 400525 Jul 16 2018 Vows.jpg
nohillside mentioned that this file does not appear to be hidden. If that is the case, my Mac is not functioning that way.
If I open Finder and press Command+Shift+., these files show up as if they are hidden. If I Force Quit Finder and reopen it, the files are hidden again, and a Command+Shift+. causes them to show up again in Finder and on the Desktop.
nohillside had also recommended that I run chgflags unhidden *
from within the Desktop folder within Terminal. When I execute the command, nothing is reported and I am kicked back to the prompt--a usual sign that the command worked properly. Regardless, I can't see these files.
I must re-iterate again that this morning I updated my machine. I try to keep it up to date, regardless. This was not happening, and has never happened, before a restart after the MacOS update.
EDIT #2
Here's a screenshot of the Get Info screen for the above file.
hidden
flag, files can be hidden using extended attributes. Can you doxattr -px com.apple.FinderInfo <file>
on one of your files (replacing the <file> with a real file).