Hello, I came across this plugin to remove the .DS_store files. I also have issues with needing to remove ._.DS_Store files as well as ._filename that mimics my actual file but tiny size (I believe its a mac related file and that "_.*" would remove them. Can anyone check if the script I have below is correct for removing the two additional types of files?
#!/bin/bash
echo "Searching for (and deleting) ._.DS_Store Files in array and external backup drives"
echo "This may take a awhile"
find /mnt/user -maxdepth 9999 -noleaf -type f -name "._.DS_Store" -exec rm "{}" \;
find /mnt/disks -maxdepth 9999 -noleaf -type f -name "._.DS_Store" -exec rm "{}" \;
#!/bin/bash
echo "Searching for (and deleting) ._* Files"
echo "This may take a awhile"
find /mnt/user -maxdepth 9999 -noleaf -type f -name "._*" -exec rm "{}" \;
find /mnt/disks -maxdepth 9999 -noleaf -type f -name "._*" -exec rm "{}" \;
Also, is it ok to run a second script that targets my external drive in the same script like above? Very new to unraid so any help is much appreciated, thank you!