commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From info <i...@iond.it>
Subject [VFS] How to resolve all local files relative to a chroot dir ?
Date Sun, 07 Nov 2004 13:42:50 GMT
Hi all,

is there anyone can give me some hints how to resolve all absolute
and relative paths versus a chroot (jail) directory with VFS ?

Of course only for the "file://" and "tmp://" schemes.

Ex. having as jail "file://myJail"

      "file://myDir/myFile.txt"  -->  "file://myJail/myDir/myFile.txt"

     "../../myDir/myFile.txt"  -->  "file://myJail/myDir/myFile.txt"

FileName.getRelativeName() doesn't make this job...

I can't realize it reading the api docs.
Maybe creating a FileSystem ?

Thanks in advance

Lucio

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


Mime
View raw message