problem: readdir returns old (cached) directory listing
| From: | sergey | Date: | Thu, 03 Oct 2002 12:43:54 +0000 |
| Subject: | problem: readdir returns old (cached) directory listing | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-118730@lists.php.net to get a copy of this message | ||
After calling unlink for a specific file in a directory on a Linux system,
the file is deleted but subsequent calls to readdir return
old directory listing until the script finishes. The next time
I execute the script, it does not list the deleted file.
But I need to reread directory just after calling unlink.
I couldn't find any information regarding this behavior of readdir.
I also tried clearstatcache() but without success.
Can anyone help?