MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / rm_folder

Function rm_folder

utils/src/experiment/preprocess.py:39–47  ·  view source on GitHub ↗
(folder: str)

Source from the content-addressed store, hash-verified

37
38
39def rm_folder(folder: str):
40 try:
41 shutil.rmtree(folder)
42 except:
43 for i in os.listdir(folder):
44 try:
45 rm_folder(pjoin(folder, i))
46 except:
47 pass
48
49
50def process_filetype(file_type: str, func: callable, thread_num: int, topic="*"):

Callers 2

parse_pdfsFunction · 0.70
prepare_pdf_folderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected