1
I have several folders with images that I need that, by PHP, it deletes all files. JPG before starting a particular function, without deleting the subfolders inside.
How can I delete JPG without deleting subfolders?
The briefcase is like this:
imagem/01.JPG
imagem/02.JPG
imagem/original/01.JPG
imagem/original/02.JPG
I want to delete only the first 2 "image/01.JPG and image/02.JPG"
The files are also in these subfolders?
– Valdeir Psr
yes, I changed the question showing how the folder is
– Leandro Teraoka
https://answall.com/questions/56228/como-apagar-arquivos-dentro-de-uma-pasta
– Rafel