Closed stefanofornari closed 8 months ago
When representing a path of a file into an archive (using for instance vfs:tar) getAbsolutePath() should include the archive pathname:
Path p = Paths.get(URI.create("vfs:tar:///tmp/archive.tar); p.getAbsolutePath() -> /tmp/archive.tar!/
for a file dir/subdir/file.txt inside archive.tar:
dir/subdir/file.txt
p.getAbsolutePath() -> /tmp/archive.tar!/dir/subdir/file.txt
After thinking more about it, given that the archive name is the file system, not a root folder, returning the path itself is correct.
When representing a path of a file into an archive (using for instance vfs:tar) getAbsolutePath() should include the archive pathname:
for a file
dir/subdir/file.txt
inside archive.tar:p.getAbsolutePath() -> /tmp/archive.tar!/dir/subdir/file.txt