I'd like to delete (unlink) files from a directory like this: .name.ico
, but the "name" can be anything else. I tried the .*.ico
like this:
unlink("dir1/dir2/.*.ico");
but it is not successfull.
If in the code I write the correct filename like this:
unlink("dir1/dir2/.name.ico");
the procedure is succesfull! But I dont know always what is the "name" exactly, I have to masked "name" to "*"
I would like to ask for help in resolving this.
Thank you very much!