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

Method is_dir

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

Source from the content-addressed store, hash-verified

393 return self.__class__(self.root, at)
394
395 def is_dir(self):
396 return not self.at or self.at.endswith("/")
397
398 def is_file(self):
399 return self.exists() and not self.is_dir()

Callers 3

openMethod · 0.95
is_fileMethod · 0.95
iterdirMethod · 0.95

Calls 1

endswithMethod · 0.45

Tested by

no test coverage detected