commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bakary Dialaya DJIBA" <dial...@gmail.com>
Subject [ Misunderstanding VFS ??? ]
Date Mon, 29 Sep 2008 16:07:45 GMT
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,

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message