On 8 May 2015 06:01 -0700, from
juliecs...@gmail.com (Julie Swierczek):
> (I am only an occasional Mac user, so be gentle.) I’ve run into a problem
> with using bagit to bundle files for transfer from a Mac. I ran bagit on a
> folder, and then ran the validation command, and it was invalid because of
> the DS_Store file. I don’t want to preserve the DS_Store file for posterity
> anyway. I've done some searching and found instructions for deleting all
> DS_Store files - and, of course, hiding them, which is not at all helpful -
> but I haven't found anything about removing them from one folder and
> preventing new ones from being created in that folder.
I don't run a Mac at all myself so haven't had any reason to
investigate this, but _Asepsis_ seems to be almost exactly what you
are looking for. From
http://asepsis.binaryage.com/:
> Asepsis prevents creation of .DS_Store files. It redirects their
> creation into a special folder.
So while it technically doesn't exactly _prevent_ creating .DS_Store
files _for_ a specific folder, it does _move them out of the specific
folder they are attached to_ which means they won't get included when
you run bagit on that folder (since the file isn't there, but rather
elsewhere; in /usr/local/.dscage, apparently).
Make sure to check OS version compatibility first; the FAQ on that
site has a list.
--
Michael Kjörling •
https://michael.kjorling.se •
mic...@kjorling.se
OpenPGP B501AC6429EF4514
https://michael.kjorling.se/public-keys/pgp
“People who think they know everything really annoy
those of us who know we don’t.” (Bjarne Stroustrup)