Re:APFS and HFS+ Benchmarks on 2017 Macbook Pro with MacOS H...
by gumby on Monday September 25, 2017 @08:14PM
(#15335214)
> I wonder if its possible to hook into Spotlight real-time (with mdfind?) and just delete them right after its created.
Not Spotlight but the File System Events API, which was designed for precisely this kind of thing.
Re:APFS and HFS+ Benchmarks on 2017 Macbook Pro with MacOS H...
by BrowncoatShadow on Tuesday September 26, 2017 @09:51AM
(#15338591)
Please note, DSDontWriteNetworkStores only prevents finder from writing metadata files to network filesystems, as the configuration key name suggests. It does not prevent it from writing metadata on your local filesystems, you will either need to use something like DeathToDSStore (requires disabling SIP), or remove them regularly post-creation.
DeathToDSStore [2] works as well, but like Asepsis it requires you to disable SIP, and that's very much not recommended!
I wonder if its possible to hook into Spotlight real-time (with mdfind?) and just delete them right after its created. Together with disabling it on networks that should be "good enough" to not see them. Might be problematic with removeable media such as USB sticks though. If you're sync/unmounting those via command line, consider a find with xargs [3] on that media before unmounting.
I haven't looked at Blue Harvest as already suggested. If that still works (without disabling SIP) I'm curious how they do that.
[1] defaults write com.apple.desktopservices DSDontWriteNetworkStores true
[2] https://github.com/snielsen/DeathToDSStore
[3] find /path_to_USB_media -name .DS_Store -print0 | xargs -0 rm