Java nio FileSystem change root path

1.1k views Asked by At

I need to know if there is a way to change the root path of a FileSystem.

I instantiate it like this:

import java.nio.file.FileSystem;
import java.nio.file.FileSystems;

final Path path = Paths.get(workingFilePath);
final URI uri = URI.create("jar:" + path.toUri());

Filesystem fs = FileSystems.newFileSystem(uri, env);

I did not find any method to do it.

Greetings, Andy

0

There are 0 answers