Hello,

you can use FileSystemManager.toFileObject(File):

https://commons.apache.org/proper/commons-vfs/apidocs/org/apache/commons/vfs2/FileSystemManager.html#toFileObject%28java.io.File%29

Gruss
Bernd

Am Sat, 25 Jul 2015 18:13:14 +0300
schrieb Alexander Nozik <alta...@gmail.com>:

> Hello,
> I've got a program, part of which is based on regular local file
> system and part is file system independent. So sometimes I need to
> convert regular local Files to VFS FileObjects. What is the simplest
> way to do that? It should be very simple, but I haven't found it in
> the documentations.
> 
> With best regards, Alexander Nozik.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
> 


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

Reply via email to