View Single Post
Old 10-04-2009, 05:48 AM  
paja1
Member
 
Join Date: Jul 2005
Posts: 43
Default

Yil: About 'caching' problem with browsing Virtual Folders.

Ok, i founded out what is happening...
It seems like the code is ok, it just that in first call is the cookie/variable $pwd outdated... means from last call.

Code:
CWD /INDEX/
250 CWD command successful.
PWD
257 "/INDEX" is current directory.
NLST *.*
$pwd = "/INDEX/"

Code:
CWD /INDEX/Foo
250 CWD command successful.
PWD
257 "/INDEX/Foo" is current directory.
NLST *.*
$pwd = "/INDEX/"

Code:
NLST *.*
$pwd = "/INDEX/Foo" (correct)

Are you updating $pwd AFTER calling iTCL script or what?

I'm doing that wrong or there is something wrong in the code?
I'm convinced this is the only problem so far!

Btw: in first call (first virtual folder) it's working well.


THANKS!!!!!!
Pavel


******* UPDATE *********************************

After replacing $pwd with $ioArgs[0] everything works quite well!

Last edited by paja1; 10-05-2009 at 03:29 PM. Reason: corrections
paja1 is offline   Reply With Quote