MCPcopy Index your code
hub / github.com/pytorch/pytorch / _delete_path

Method _delete_path

caffe2/python/dataio_test.py:354–358  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

352
353 @staticmethod
354 def _delete_path(path):
355 if os.path.isfile(path):
356 os.remove(path) # Remove file.
357 elif os.path.isdir(path):
358 shutil.rmtree(path) # Remove dir recursively.
359
360 def _make_temp_path(self):
361 # Make a temp path as db_path.

Callers 3

tearDownMethod · 0.95
test_cached_readerMethod · 0.95
test_db_file_readerMethod · 0.95

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected