MCPcopy Create free account
hub / github.com/pytorch/pytorch / deleteDirectory

Function deleteDirectory

caffe2/python/models/download.py:34–40  ·  view source on GitHub ↗
(top_dir)

Source from the content-addressed store, hash-verified

32
33
34def deleteDirectory(top_dir):
35 for root, dirs, files in os.walk(top_dir, topdown=False):
36 for name in files:
37 os.remove(os.path.join(root, name))
38 for name in dirs:
39 os.rmdir(os.path.join(root, name))
40 os.rmdir(top_dir)
41
42
43def progressBar(percentage):

Callers 4

_downloadMethod · 0.90
download_caffe2_modelFunction · 0.90
downloadModelFunction · 0.85
_downloadMethod · 0.85

Calls 2

removeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…