commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject Re: [VFS] directory caching
Date Tue, 29 Nov 2005 08:08:53 GMT
HJi Gabriel!
> FileObject internally caches the children - multiple calls to getChildren()
> return the same value even if the children on the server have changed.  
>
> is this wanted ? I am using NullFilesCache, and I intuitively thought that
> this would also concern directory listings. how can I avoid directory
> caching ? **
>   
This is a hot topic and on my todo list for the next release.

For now its best to call
foDirectory.close()
this will clear the children list and refetch it on next getChildren()

And please do not use the NullFilesCache for now as it might lead to 
resource leaks.


Thanks!
---
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message