[vfs] Files in "..temp\vfs_cache" are not deleted after read zip
This post was updated on .
I don'tknow how to ensure that files after processing will be
deleted from "Temp\vfs_cache" ..
I have multithreaded aplication.
Each thread read remote zip archives ...
My code looks like this:
StandardFileSystemManager fsm = new StandardFileSystemManager();
// do some job.. read zip and get content to byte
FileName fName = fsm.resolveURI(...)
FileObject dir = fsm.resolveFile("zip:" + fName.toString());
FileObject fObjs = dir.getChildren(); // get files in zip
process fObjs ...
If I call fsm.close() -> files are not clear from \Temp\vfs_cache
I need read zip file (content of zip archive) which are on other host so I need cache because,
if I set NullFilesCache on fsm exception is thrown:
org.apache.commons.vfs.FileSystemException: Could not list the contents of "zip:http://..."
after I call getChilder()..