Download file and delete other file(s) in the folder
Hi,
A few years ago martin helped me with downloading files to my computer and deleting them on my server and today I am wondering if the following is possible.
When my script downloads a file is it possible to have it remove anything else that is within that specific folder it downloads to, for example on my computer I might have D:\Work Files\document.docx and on the server a newer version of this will exist but it could have been saved as a different name or something like document-edit.docx is there a way for the script to download the file and then delete the file that was in that specific folder previously, the extension may not always be .docx, it could be a number of extensions including video files, images, excel spreadsheets.
Hopefully I have explained myself correctly as I tend to not explain things very well.
If you need any more info, let me know.
Thanks :)
A few years ago martin helped me with downloading files to my computer and deleting them on my server and today I am wondering if the following is possible.
When my script downloads a file is it possible to have it remove anything else that is within that specific folder it downloads to, for example on my computer I might have D:\Work Files\document.docx and on the server a newer version of this will exist but it could have been saved as a different name or something like document-edit.docx is there a way for the script to download the file and then delete the file that was in that specific folder previously, the extension may not always be .docx, it could be a number of extensions including video files, images, excel spreadsheets.
Hopefully I have explained myself correctly as I tend to not explain things very well.
If you need any more info, let me know.
Thanks :)