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

Method is_file

tensorflow_datasets/core/github_api/github_path.py:307–309  ·  view source on GitHub ↗

Returns True if the path is a file.

(self)

Source from the content-addressed store, hash-verified

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."""
309 return self.github_tree.is_file(pathlib.PurePosixPath(self.subpath))
310
311 def exists(self) -> bool:
312 """Returns True if the path exists."""

Callers 5

existsMethod · 0.95
test_github_api_listdirFunction · 0.45
test_github_api_existsFunction · 0.45
assert_is_fileFunction · 0.45
assert_is_folderFunction · 0.45

Calls

no outgoing calls

Tested by 4

test_github_api_listdirFunction · 0.36
test_github_api_existsFunction · 0.36
assert_is_fileFunction · 0.36
assert_is_folderFunction · 0.36