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

Method iterdir

tensorflow_datasets/core/github_api/github_path.py:296–301  ·  view source on GitHub ↗

Yields the sub-paths.

(self)

Source from the content-addressed store, hash-verified

294 return f'https://github.com/{self.repo}/blob/{self.branch}/{self.subpath}'
295
296 def iterdir(self) -> Iterator['GithubPath']:
297 """Yields the sub-paths."""
298 if not self.is_dir():
299 raise NotADirectoryError(f'{self.subpath} is not a directory.')
300 for filename in self.github_tree.files_per_folder[self.subpath]:
301 yield self / filename.name
302
303 def is_dir(self) -> bool:
304 """Returns True if the path is a directory or submodule."""

Callers 15

_list_possible_configsFunction · 0.80
_read_filesFunction · 0.80
test_write_beamMethod · 0.80
dataset_packagesMethod · 0.80
gcs_listdirFunction · 0.80
gcs_dataset_info_filesFunction · 0.80
download_gcs_folderFunction · 0.80
_find_files_without_globFunction · 0.80
publish_dataFunction · 0.80

Calls 1

is_dirMethod · 0.95

Tested by 14

test_write_beamMethod · 0.64
test_write_metadataFunction · 0.64
test_github_api_listdirFunction · 0.64
assert_is_folderFunction · 0.64
test_builder_clsFunction · 0.64
dummy_registerFunction · 0.64
test_build_catalogFunction · 0.64
test_new_outside_tfdsFunction · 0.64
test_new_in_tfdsFunction · 0.64
test_build_overwriteFunction · 0.64