But you have a Path object, which doesn't seem to extend the abstract class FileSystemProvider, so the method will be unavaliable to a Path object.