MCPcopy Index your code
hub / github.com/tensorflow/datasets / exists

Method exists

tensorflow_datasets/core/github_api/github_path.py:311–313  ·  view source on GitHub ↗

Returns True if the path exists.

(self)

Source from the content-addressed store, hash-verified

309 return self.github_tree.is_file(pathlib.PurePosixPath(self.subpath))
310
311 def exists(self) -> bool:
312 """Returns True if the path exists."""
313 return self.is_dir() or self.is_file()
314
315 def read_bytes(self) -> bytes:
316 """Returns the file content as bytes."""

Callers 15

_generate_examplesMethod · 0.80
_split_generatorsMethod · 0.80
_load_csv_filesFunction · 0.80
_list_possible_configsFunction · 0.80
_contains_datasetFunction · 0.80
test_beam_datasetsFunction · 0.80
_test_shardsFunction · 0.80
read_from_directoryMethod · 0.80
read_valuesMethod · 0.80
del_fileMethod · 0.80
test_with_configsMethod · 0.80

Calls 2

is_dirMethod · 0.95
is_fileMethod · 0.95

Tested by 15

test_beam_datasetsFunction · 0.64
_test_shardsFunction · 0.64
test_with_configsMethod · 0.64
test_incomplete_fileFunction · 0.64
test_bulk_deleteMethod · 0.64
test_bulk_renameMethod · 0.64
test_write_metadataFunction · 0.64
test_github_api_existsFunction · 0.64
test_assert_no_api_callFunction · 0.64
assert_is_fileFunction · 0.64
assert_is_folderFunction · 0.64
test_builder_clsFunction · 0.64