You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Bakary Dialaya DJIBA <di...@gmail.com> on 2008/09/29 18:07:45 UTC

[ Misunderstanding VFS ??? ]

Hi,
With the code below:

FileSystemManager manager = VFS.getManager();
FileObject vfs = manager.createVirtualFileSystem("/");
FileObject home = manager.createVirtualFileSystem("/");
home.getFileSystem().addJunction("documents",
manager.resolveFile("file://folder/folder1" )); // folder an folder1 never
exist really
home.getFileSystem().addJunction("private",
manager.resolveFile("file://fo/fo1" )); // fo an fo1 never exist really
vfs.getFileSystem().addJunction("home", home);

I hope to have the FileSystem:
 /home
     /documents/
     /private/

But, vfs.createFolder() causes an NullPointerException because (I think
that) FileType is imaginary.

So How can Change the File Type?
Is it possible for me to create that File System Whithout having physical
file (real file in hard disk)?

Regards

-- 
Bakary,