I don’t usually open files from Documents folder in Emacs. But I was trying to open an Arduino files, which by default is created in Documents folder. And I found out I couldn’t dired the Documents dir (Not sure if I was able to open the file). The error was:
Listing directory failed but ‘access-file’ worked
Solution
It’s caused by Mac OS Privacy settings.
Settings
->General Settings
->Security & Privacy
->Privacy
->Full Disk Access
- Check Emacs (Require restart)
- Click +, add
/usr/bin/ruby
(I added this after restarting Emacs, did not require other restart. This was the one that let me do the dired)
- [ref]