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

Method is_dir

tensorflow_datasets/core/github_api/github_path.py:303–305  ·  view source on GitHub ↗

Returns True if the path is a directory or submodule.

(self)

Source from the content-addressed store, hash-verified

301 yield self / filename.name
302
303 def is_dir(self) -> bool:
304 """Returns True if the path is a directory or submodule."""
305 return self.github_tree.is_folder(self.subpath)
306
307 def is_file(self) -> bool:
308 """Returns True if the path is a file."""

Callers 15

iterdirMethod · 0.95
existsMethod · 0.95
_list_possible_configsFunction · 0.80
_find_files_without_globFunction · 0.80
list_all_versionsFunction · 0.80
test_github_api_listdirFunction · 0.80
test_github_api_existsFunction · 0.80
assert_is_fileFunction · 0.80
assert_is_folderFunction · 0.80
get_dataset_sourceFunction · 0.80
_compute_dir_hashFunction · 0.80

Calls 1

is_folderMethod · 0.80

Tested by 6

test_github_api_listdirFunction · 0.64
test_github_api_existsFunction · 0.64
assert_is_fileFunction · 0.64
assert_is_folderFunction · 0.64
mock_cwdFunction · 0.64
_get_folder_strFunction · 0.64