Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Dealing with hidden or ghost files
#13
(02-12-2022, 08:55 PM)opikid Wrote: Is there any way of deleting (hidden) ._ files from an openmediavault share ?

Copied the media to an ext4 drive from mac (with ExtFS)

Tried ssh to the pi (raspianLite with OMV) but i'm not seeing the drive in media folder ..

Or maybe deleting it from macos? anyway of doing it automatically for a big collection ?

Thanks !

Those osx dot files and dirs are really annoying. If you try to delete them on osx drives they will just come right back whenever the drive or folder is accessed by an app or Finder.

I run the commands below on Linux to nuke em. First change to the root of the drive or folder tree.

Code:
sudo find . -name "._*" -exec rm -rf {} \;
sudo find . -name ".Trashes" -exec rm -rf {} \;
sudo find . -name "._.Trashes" -exec rm -rf {} \;
sudo find . -name ".Spotlight*" -exec rm -rf {} \;
sudo find . -name ".DS_Store" -exec rm -rf {} \;
sudo find . -name "._.DS_Store" -exec rm -rf {} \;
sudo find . -name ".fseventsd*" -exec rm -rf {} \;
sudo find . -name "._.com.apple.timemachine.donotpresent" -exec rm -rf {} \;
sudo find . -name ".com.apple.timemachine.donotpresent" -exec rm -rf {} \;
sudo find . -name ".TemporaryItems" -exec rm -rf {} \;
sudo find . -name "._.TemporaryItems" -exec rm -rf {} \;
sudo find . -name "._moodecfg.txt" -exec rm -rf {} \;
sudo find . -name "__MACOSX" -exec rm -rf {} \;
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: Dealing with hidden or ghost files - by Tim Curtis - 02-12-2022, 11:26 PM

Forum Jump: