Hide Files and Folders in Finder

I like to have clean directories when I open up Finder. Some files and folders like node_modules can’t be hidden with a dot in the name without creating conflicts with the programs using them. But there is another way to hide them.

SetFile hide command

Hide files and folders with:

SetFile -a V ./node_modules

To unhide them put a small v instead of V

SetFile -a v ./node_modules

You need Command Line Tools installed to do this. xcode-select --install

--

--

Daniel Rotärmel

Computer Scientist from Stuttgart and recent grad at Media University Stuttgart