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

Method is_dir

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

Source from the content-addressed store, hash-verified

390 return self.__class__(self.root, at)
391
392 def is_dir(self):
393 return not self.at or self.at.endswith("/")
394
395 def is_file(self):
396 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