Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/modelscope/modelscope
/ clean_tmp
Method
clean_tmp
modelscope/utils/test_utils.py:391–397 ·
view source on GitHub ↗
(self, tmp_file_list)
Source
from the content-addressed store, hash-verified
389
**kwargs)
390
391
def
clean_tmp(self, tmp_file_list):
392
for
file in tmp_file_list:
393
if
os.path.exists(file):
394
if
os.path.isdir(file):
395
shutil.rmtree(file)
396
else
:
397
os.remove(file)
Callers
nothing calls this directly
Calls
2
exists
Method · 0.45
remove
Method · 0.45
Tested by
no test coverage detected