private boolean isSameFileSystem(Path path) { return ((JimfsFileSystem) path.getFileSystem()).getDefaultView() == view; }
/** * Returns the default file system view for the given path. */ private static FileSystemView getDefaultView(JimfsPath path) { return getFileSystem(path).getDefaultView(); }
@Override public JimfsPath toRealPath(LinkOption... options) throws IOException { return getJimfsFileSystem() .getDefaultView() .toRealPath(this, pathService, Options.getLinkOptions(options)); }
private boolean isSameFileSystem(Path path) { return ((JimfsFileSystem) path.getFileSystem()).getDefaultView() == view; }
/** * Returns the default file system view for the given path. */ private static FileSystemView getDefaultView(JimfsPath path) { return getFileSystem(path).getDefaultView(); }
@Override public JimfsPath toRealPath(LinkOption... options) throws IOException { return getJimfsFileSystem() .getDefaultView() .toRealPath(this, pathService, Options.getLinkOptions(options)); }