MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_file

Method is_file

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

Source from the content-addressed store, hash-verified

393 return not self.at or self.at.endswith("/")
394
395 def is_file(self):
396 return self.exists() and not self.is_dir()
397
398 def exists(self):
399 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