MCPcopy Create free account
hub / github.com/cztomczak/cefpython / delete_files_by_pattern

Function delete_files_by_pattern

tools/build.py:844–851  ·  view source on GitHub ↗
(pattern)

Source from the content-addressed store, hash-verified

842
843
844def delete_files_by_pattern(pattern):
845 assert len(pattern) > 2
846 print("[build.py] Delete files by pattern: {pattern}"
847 .format(pattern=pattern))
848 files = glob.glob(pattern)
849 for f in files:
850 os.remove(f)
851 print("[build.py] Removed {0} files".format(len(files)))
852
853
854def delete_directories_by_pattern(pattern):

Callers 2

clean_cpp_projects_unixFunction · 0.70
clear_cacheFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected