I have a mounted a folder to a seedbox. and in the folder i use syncthing. so it creates a " .stfolder" which is used for syncthing . basically i am having trouble finding a script to run that says look in x folder and xx subfolders but ignore hidden folder and delete everything that is older than xxx hours.
I tried to modify " find /path/to/files* -mtime +5 -exec rm {} ; " but had no success it kept finding the hidden folder
folder structure is like this
downloads/Movies/.stfolder and downloads/TV/.stfolder  with TV and Movies having files and subfolders
Ultimately i am running this on a raspberry pi4. and my intent is to use a cron job to call a script to run every 12 hours or so . i have my seed box mounted to my rasperrypi 4 using curlftpfs
Any solution that works would be appreciated. Thank you