commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Eckenfels <e...@zusammenkunft.net>
Subject Re: [VFS2] What is the best way to convert regular FIle to FileObject
Date Sat, 25 Jul 2015 15:17:37 GMT
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 <altavir@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-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 


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


Mime
View raw message