MCPcopy Create free account
hub / github.com/python/cpython / get_files

Method get_files

Lib/test/libregrtest/save_env.py:269–273  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

267 sysconfig._INSTALL_SCHEMES.update(saved[2])
268
269 def get_files(self):
270 # XXX: Maybe add an allow-list here?
271 return sorted(fn + ('/' if os.path.isdir(fn) else '')
272 for fn in os.listdir()
273 if not fn.startswith(".hypothesis"))
274 def restore_files(self, saved_value):
275 fn = os_helper.TESTFN
276 if fn not in saved_value and (fn + '/') not in saved_value:

Callers

nothing calls this directly

Calls 3

listdirMethod · 0.80
isdirMethod · 0.45
startswithMethod · 0.45

Tested by

no test coverage detected