Not quite the obvious fclose()!
I am running a process on a web server and want to delete files in a folder but only fic/mmo/ndx. I use flist to get the files in the folder then loop round the result and deleting any files with the appropriate filter. I use this code all the time to do various things.
However in this case when deleting the file I get an error saying "the file is being used by another process".
I have tried disconnecting from the database, using funlock and fclose then fdelete but the file is still being used.
Is there any way to force a file to close so it can be deleted?
Thx
I am running a process on a web server and want to delete files in a folder but only fic/mmo/ndx. I use flist to get the files in the folder then loop round the result and deleting any files with the appropriate filter. I use this code all the time to do various things.
However in this case when deleting the file I get an error saying "the file is being used by another process".
I have tried disconnecting from the database, using funlock and fclose then fdelete but the file is still being used.
Is there any way to force a file to close so it can be deleted?
Thx