0
I have a script that imports photos and creates mini and medias thumbnails inside the registration folder and I would like that after you run this one, it erases the original photos.
The structure of the folder is like this:
pasta_fotos
--original1.jpg
--original2.jpg
--pasta_miniatura
----mini1.jpg
----mini2.jpg
--pasta_medio
----medio1.jpg
----medio2.jpg
What I need is that at the end of the script it deletes the original photos, IE, all that are inside the folder photos, but do not delete the other photos or other folders.
Delete only:
--original1.jpg
--original2.jpg
Thank you, that’s right!
– Leandro Marzullo
I only changed the original* to *only, each file has a different name
– Leandro Marzullo