Hacker News new | ask | show | jobs
by rbritton 3436 days ago
Not related in any way, Little Flocker[0] is a similar program but for file access. It's a little rough around the edges but has been improving steadily.

[0]: https://www.littleflocker.com

2 comments

Can it be used to stop OS X Spotlight from putting DS_store in every directory it sees?

Edit based on gumby's response below: can it stop finder from littering in every directory it sees?

Spotlight isn't putting that file there; that's where the Finder stores the directory-specific preferences (window size/position, list vs icon display etc). If you don't use the Finder (which I mostly don't) then you'll never see these files.

Spotlight maintains its own database in /

I have this at the bottom of my .zshrc just for this reason:

  # remove any .DS_Store files
  # (run in a subshell to suppress background job number info being printed)
  ( ag --hidden -u -l -g '\.DS_Store$' |xargs -n 1 rm -f & ) > /dev/null 2>&1
i used littleflocker for a few months and, while it worked really well, it slowed my machine down sooo much. perhaps the newer releases perform better.
The newer releases are much, much faster. You should give it another shot.