FileSystemManager manager = VFS.getManager();
FileObject root = manager.resolveFile("ram:/");
manager.closeFileSystem(root.getFileSystem());

should do the trick.



Mvgr,
Martin

2014-12-24 11:29 GMT+01:00 Arbi Akhina <[email protected]>:
> Hi, I'm using VFS2 to construct an in-memory filesystem (uring the ram scheme)
> for tests. After each test I've to clean up (destroy all created files and
> folders), I'm using the following command:
>
> VFS.getManager().getFilesCache().close();
>
> However this doesn't seem to clear everything! what's the proper way to do
> it?
>
> question on stackoverflow
> <http://stackoverflow.com/questions/27619994/how-to-properly-clear-vfs-ram-filesystem>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to