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

Function delete_glob

Android/android.py:90–98  ·  view source on GitHub ↗
(pattern)

Source from the content-addressed store, hash-verified

88
89
90def delete_glob(pattern):
91 # Path.glob doesn't accept non-relative patterns.
92 for path in glob(str(pattern)):
93 path = Path(path)
94 print(f"Deleting {path} ...")
95 if path.is_dir() and not path.is_symlink():
96 shutil.rmtree(path)
97 else:
98 path.unlink()
99
100
101def subdir(*parts, create=False):

Callers 3

make_host_pythonFunction · 0.85
cleanFunction · 0.85
setup_ciFunction · 0.85

Calls 6

is_dirMethod · 0.95
is_symlinkMethod · 0.95
unlinkMethod · 0.95
globFunction · 0.90
PathClass · 0.90
strFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…