26

I'm tired of finder creating these .DS_Store metadata and finder view tracking files in all of my directories. How can I disable this in Finder?

bmike
  • 235,889

4 Answers4

21

As Fake Name pointed out, Total Finder comes with a kernel extension to redirect .DS_Store files which effectively prevents those pesky files from being created in your directories and without losing the function. What he/she didn't point out is that the kernel extension can be downloaded without Total Finder from github. You have to build it and drop it in your /System/Library/Extensions directory. Then you should restart your computer. It appears to be working for me so far.

Update: This is now a separate project from TotalFinder called Asepsis. There is now a lot more documentation on how it works and the installation process. The GitHub repo is now located here.

styfle
  • 1,727
  • Interesting. This is a new thing. When I started using total finder, the only way to get the asepsis kext was to install total finder. It's cool that they have subsequently open-sourced it! – Fake Name Mar 05 '12 at 13:30
  • 1
    Beware. Does not work in Mavericks. (if it ever worked anywhere else). Try BlueHarvest... it is annoying.. but does seem to purge these "little shits". – alex gray Oct 03 '13 at 22:59
  • @alexgray Both the Asepsis website and Github repo specify that it doesn't work with Mavericks but I suspect they will add support soon. It looks like BlueHarvest is not open source however. – styfle Nov 07 '13 at 16:17
  • I've been talking to the developer of Asepsis.. and he says that 10.9 compatibility is NOT in the cards. – alex gray Nov 07 '13 at 17:27
  • Asepsis 1.4 supports OS X 10.9 – Carlo May 10 '14 at 07:54
5

Your question is kind of like asking "git init" not to create the ".git" directory in your project. In other words, you're choosing to use a tool, but you want that tool to not store the metadata that it needs to store.

There is an Apple support document that describes how to disable the creation of .DS_Store files, but it is only relevant to how the finder treats remote file systems. It will not help you if you seek to have the Finder treat your local filesystem in this manner.

pohl
  • 1,041
  • 7
    I can have git create it's .git control structure in a directory outside of my working directory. Regardless the comparison if it can't be done I'll ask for alternatives to Finder. – Marco Ceppi Apr 11 '11 at 17:06
  • Rats, I should have chosen a less flexible example. You're right about git, and that brings to mind that you could always choose to file an issue with Apple so that perhaps a future version of the Finder could be as flexible. – pohl Apr 11 '11 at 17:18
  • Somehow I doubt that will carry much weight. Thanks for your answer though – Marco Ceppi Apr 11 '11 at 17:34
  • 1
    You're welcome. They probably prioritize features based on the frequency of complaint, so you may want to reconsider. The Wikipedia entry for DS_store suggests that the way the metadata is stored changed at least once in the lifetime of the Finder, based upon user complaint. (It used to store it at the root of the relevant filesystem.) – pohl Apr 11 '11 at 17:37
  • Is there a way not to use Finder? I'd love to know. – Hoang Huynh Apr 03 '15 at 13:37
  • Finder is to OSX what IE is to Windows. There are nice alternatives, but good luck trying to remove it. – Mike Causer Feb 04 '16 at 23:45
  • 1
    @HoangHuynh: Isn't using the terminal by-passing the Finder? – Natsfan Sep 08 '20 at 14:53
  • -1 - nobody choosed Finder and 99% of user would happily remove it. It is like - you are forced to use svn, when the rest of the world already using git – Reishin Feb 22 '23 at 08:31
5

In this case, TotalFinder does allow you to disable (well, it really redirects all .ds_store files into /usr/local/.dscache) the creation of .ds_store files, through what they call the "Asepsis Feature"

bmike
  • 235,889
Fake Name
  • 5,389
  • 4
    Can we focus on answering the question, not bashing other peoples answers? – Harv Apr 12 '11 at 03:10
  • Assuming other people actually answer, rather than just say it can't be done, sure. – Fake Name Apr 12 '11 at 04:04
  • I'm not sure why this was voted down; TotalFinder is a Finder plugin and so arguably is a direct solution to the question. – David Apr 12 '11 at 12:59
  • Frankly, saying 'No' if you don't know, is actively unhelpful. Pohl and CajunLuke's answers are both destructive, in that someone with the issue the OP is experiencing would come away from this question with the impression that there is no way to circumvent the .DS_Store issue, rather then the (self-evident) fact that those two people simply don't know what they're talking about. – Fake Name Mar 05 '12 at 13:34
  • 1
    An incorrect answer from someone who is presumed to be knowledgeable is far more detrimental then a lack of answer. A lack of an answer will just lead to further searching, and even of the original questioner gives up, that person will generally remain open to suggestions referencing the question in the future. A incorrect answer terminates the line of inquiry immediately. if you don't know, or are uncertain, DON'T ANSWER. – Fake Name Mar 05 '12 at 13:37
  • 2
    I want to remind everyone of two things. 1) It's not appropriate to tell someone not to answer. This is a welcoming space and this enables us to accommodate questions for casual users and ones for expert users. 2) Discussion about the site should be on META - not here. Let's raise how to handle questions with no easy answer on meta and not hi-jack a one line question with site generalities. – bmike Mar 05 '12 at 14:28
  • @bmike: I agree with you, but I feel FakeName has a point also. In one of the other SEs I frequent, there are numerous questions along the lines of "Can I do...", or "How do I...". When I don't believe something is possible (to the point of being absolutely convinced in my mind) it's not - I've come to answer simply along the lines of "AFAIK, this isn't possible... ", or something similar. Arrogant answers that assume the answer-er is omniscient, or knows exactly what the OP had in mind are rarely useful. My $0.02... – Seamus Mar 23 '24 at 22:17
0

If you turn the ability to see invisible files off, you won't see them.

Cajunluke
  • 17,704
  • 3
    They're in my zips, and I manage a lot of hidden files. I'm more concerned with the fact that it holds its meta data along side my data. Seems like a fatal design flaw. – Marco Ceppi Apr 11 '11 at 21:15
  • 4
    Soooo not an answer. If you're in a forest, and facing a bear, closing your eyes won't help. – Fake Name Apr 12 '11 at 02:20
  • 1
    @Marco you might want to consider reframing your question to "how can I keep .DS_store files out of my zips?" It may be an easier problem to solve and would scratch the same itch. – pohl Apr 12 '11 at 13:21
  • 1
    @Fake Name But if you're in a zoo, and afraid of bears, and you have to pass near the bear habitat, closing your eyes would work, and that's about how dangerous the hidden files are. – Cajunluke Apr 12 '11 at 14:09
  • 1
    @Fake Name Also, if someone else set up his computer (or someone comes in the future to this question in that situation), he may not have known that these files are usually hidden and can be turned off. – Cajunluke Apr 12 '11 at 14:11
  • “Living is Easy with Eyes Closed.” ― John Lennon – Seamus Mar 23 '24 at 22:26