USBclean not removing files since moving to macOS Sequoia
-
Hi,
I've noticed that dot underscore files are not being removed by USBclean on my USB drives and SD cards any more. The log shows errors like "<filename> couldn’t be removed because you don’t have permission to access it."I've tried various methods (including chmod 777) but to no avail.
Is this something to do with the new System Integrity Protection stuff in macOS Sequoia? Is there a fix?
Matthew
-
@marvbloke Have you given USBclean Full Disk Access in System Settings?
-
USBclean seems to be removing files like '.DS_Store' and '.Spotlight_V100'. But it's the "dot underscore" files that won't budge. So for example, if there's a file called 'CosmicPayback.tap', it won't remove the '._CosmicPayback.tap' file, and gives the error:
/Volumes/RETRO/Modern Spectrum/Cosmic Payback/._CosmicPayback.tap
“._CosmicPayback.tap” couldn’t be removed because you don’t have permission to access it.I've tried this on multiple USB drives and various SD cards.
-
And here's an extract from my USBclean log file showing the issue (which comes up for all '._' files):
The following errors occurred:
/Volumes/RETROGAMES/Spectrum Development/AGD4.7X4_beta/._AGD4.7x4betaGc.tap
“._AGD4.7x4betaGc.tap” couldn’t be removed because you don’t have permission to access it.
/Volumes/RETROGAMES/Spectrum Development/ZXFM/Other/._Emma1.dsk
“._Emma1.dsk” couldn’t be removed because you don’t have permission to access it.
/Volumes/RETROGAMES/Spectrum Development/BimMobiles/._BimMobiles - listing.txt
“._BimMobiles - listing.txt” couldn’t be removed because you don’t have permission to access it. -
Now this is interesting - USBclean has no problem removing the dot-underscore files on the same USB drives/SD cards using my other Mac which is running macOS Sequoia 15.1 (not the 15.2 public beta). So maybe it's worth you testing USBclean against the betas for 15.2?
-
Came here and registered to say I am having the same issue.
These files are a pain when copying music to my sdcard for my car stereo.
Is there anyway to use the "dot_clean" command in USBClean? I tried it in terminal and it worked for the one folder I tested on my FAT32 formatted sdcard.
-
Came here and registered to say I am having the same issue.
These files are a pain when copying music to my sdcard for my car stereo.
Is there anyway to use the "dot_clean" command in USBClean? I tried it in terminal and it worked for the one folder I tested on my FAT32 formatted sdcard.
@NostromoKane Im actually looking into
dot_clean
but it suffers the same issue as the current method being used in USBclean. Im pretty sure it an issue with sandboxing....
-
unfortunately it looks like I need to do a major refactor/rewrite of USBclean to get this working on Sequoia....
Apple really likes to make it difficult for developers
Sorry to hear that. I hope it isn't too much work to get the problem fixed!
In the mean time I am trying to create an Automator script using dot_clean to clean those files on external drives.
If anyone has more experience with creating scripts any assistance would be appreciated.
-
-
Ive found a solution, and have this working for the version from my Store. This will be included in v4.2.
But, I do still need to figure out how to get this working in the App Store version though. That will take a few days as I am busy right now.
@SweetP Glad to hear you found a solution. I have the App Store version so I think I will just wait for the update to come.
Thank you for keeping us updated.
-
I now have a working solution for the App Store. It's going to be a bit more effort to setup than the version from my Store. But will restore removal of ._ files.
I still need to clean up the code a little, make some more adjustments to the interface to accomodate the new changes, and update the website with install instructions etc.
I'll release updates to both versions hopefully this weekend.