if ("file".equals(this.fs.getUri().getScheme())) {
Path qualified = file.makeQualified(FileSystem.getLocal(conf));
File fsLocal = new File(qualified.toUri());
return FSDirectory.open(new File(fsLocal.getAbsolutePath()));
} else {
return new FsDirectory(this.fs, file, false, this.conf);
}
}