MCPcopy Index your code
hub / github.com/python/cpython / is_file

Method is_file

Lib/zipfile/_path/__init__.py:398–399  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

396 return not self.at or self.at.endswith("/")
397
398 def is_file(self):
399 return self.exists() and not self.is_dir()
400
401 def exists(self):
402 return self.at in self.root._name_set()

Callers

nothing calls this directly

Calls 2

existsMethod · 0.95
is_dirMethod · 0.95

Tested by

no test coverage detected