Use isDir in in place of FileSystem.isDirectory in FilesDataSource::open