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

Method exists

Lib/test/test_site.py:815–819  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

813
814class CommandLineTests(unittest.TestCase):
815 def exists(self, path):
816 if path is not None and os.path.isdir(path):
817 return "exists"
818 else:
819 return "doesn't exist"
820
821 def get_excepted_output(self, *args):
822 if len(args) == 0:

Calls 1

isdirMethod · 0.45

Tested by

no test coverage detected