Non existing and undeletable folder appears with readdir()
Posted: Mon Aug 22, 2011 3:57 am
Hi all
In my script I use opendir and readdir to get a list of folders in a specific directory.
However, someone created a folder which seems to be non existing, and I can't read the files in it or delete it.
That 'ghost' folder is listed in readdir(), as well as inside its parent folder in Filezilla.
However, trying to unlink() the folder throws "No such file or directory" error, and trying to delete it from Filezilla also throws an error saying "Failed to retrieve directory listing".
What can I do to delete this?
Thanks
In my script I use opendir and readdir to get a list of folders in a specific directory.
However, someone created a folder which seems to be non existing, and I can't read the files in it or delete it.
That 'ghost' folder is listed in readdir(), as well as inside its parent folder in Filezilla.
However, trying to unlink() the folder throws "No such file or directory" error, and trying to delete it from Filezilla also throws an error saying "Failed to retrieve directory listing".
What can I do to delete this?
Thanks