Avoiding Trashes and Spotlight ?

I wish to copy “Word” files created on my Mac to a usb stick and then to a PC. Copy is successful but includes “trashes” and “spotlight” created by Apple but not needed on PC


Can this be avoided ?

iMac 21.5″, macOS 14.4

Posted on May 2, 2024 9:56 AM

Reply
Question marked as Top-ranking reply

Posted on May 4, 2024 12:21 AM

I delete .dot_files littering FAT formatted thumb drives before using them on a smart TV etc via the Terminal with:


dot_clean -mnf [folder path]


But that does not touch those .Trashes and .Spotlight-V100 folders. I have not found a way to delete them via the Terminal ('ls: .: Operation not permitted' at least with sudo) but they do not bother me much so I have not tried very hard (.fseventsd can be readily removed).


I now again tested this and after revealing the FAT drive's invisible files via Shift-Command-. in the Finder I could delete .Spotlight-V100 folder but it soon re-appears unless Spotlight search for that volume is disabled via System > Siri & Spotlight > Spotlight Privacy... Oddly that does not reveal those .dot_files in Finder.

5 replies
Question marked as Top-ranking reply

May 4, 2024 12:21 AM in response to Arnie896

I delete .dot_files littering FAT formatted thumb drives before using them on a smart TV etc via the Terminal with:


dot_clean -mnf [folder path]


But that does not touch those .Trashes and .Spotlight-V100 folders. I have not found a way to delete them via the Terminal ('ls: .: Operation not permitted' at least with sudo) but they do not bother me much so I have not tried very hard (.fseventsd can be readily removed).


I now again tested this and after revealing the FAT drive's invisible files via Shift-Command-. in the Finder I could delete .Spotlight-V100 folder but it soon re-appears unless Spotlight search for that volume is disabled via System > Siri & Spotlight > Spotlight Privacy... Oddly that does not reveal those .dot_files in Finder.

May 2, 2024 10:58 AM in response to Arnie896

Arnie896 wrote:

I wish to copy “Word” files created on my Mac to a usb stick and then to a PC. Copy is successful but includes “trashes” and “spotlight” created by Apple but not needed on PC

Can this be avoided ?

No. Those are files that are on all Mac external drives but are invisible when you're using a Mac. Just ignore them.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Avoiding Trashes and Spotlight ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.