By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,776 Members | 1,233 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,776 IT Pros & Developers. It's quick & easy.

filesystem functions delayed

P: n/a
information one receives from is_dir() is out of date. In SuSE Linux 9.1
Kernel: 2.6.5-7.111 Apache/2.0.49, PHP Version 4.3.4. the following script:

****************echo*"destination*dir*$d2*already* exists";

leads to:

d1: /home/zbyszek/people/1/15523
d2: /home/zbyszek/people/1/17904
isdir ( /home/zbyszek/people/1/15523 ) = 1
rename (/home/zbyszek/people/1/15523, /home/zbyszek/people/1/17904) 1
d1: /home/zbyszek/people/2/200
d2: /home/zbyszek/people/1/15523
destination dir /home/zbyszek/people/1/15523 already exists !!!!!!!!!!!!

but the terminal shell says:

zbyszek@jane:~/people> ls 2/200 1/15523 1/17904
/bin/ls: 2/200: No such catalog
/bin/ls: 1/15523: No such catalog !!!!!!!!!!!!!!!!!!!!!!!!!

obviously is_dir($d2) gives the wrong result. could somebody help me, please
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
*** Zbigniew Lisiecki wrote/escribió (Tue, 10 May 2005 20:09:26 +0200):
information one receives from is_dir() is out of date.

The correct term is "cached":

"Note: The results of this function are cached. See clearstatcache() for
more details."

-- Álvaro G. Vicario - Burgos, Spain
-- - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.