MCPcopy Index your code
hub / github.com/docker/docker-py / is_file

Function is_file

docker/api/image.py:575–582  ·  view source on GitHub ↗
(src)

Source from the content-addressed store, hash-verified

573
574
575def is_file(src):
576 try:
577 return (
578 isinstance(src, str) and
579 os.path.isfile(src)
580 )
581 except TypeError: # a data string will make isfile() raise a TypeError
582 return False
583
584
585def _import_image_params(repo, tag, image=None, src=None,

Callers 1

_import_image_paramsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected