MCPcopy Index your code
hub / github.com/Turing-Project/WriteGPT / remove_old_file

Function remove_old_file

LanguageNetwork/BERT/utils/dataio.py:150–157  ·  view source on GitHub ↗

:param path: :type path: str :return:

(path)

Source from the content-addressed store, hash-verified

148
149
150def remove_old_file(path):
151 """
152 :param path:
153 :type path: str
154 :return:
155 """
156 if check_dir(path):
157 os.remove(path)
158
159
160def delete_file(path):

Callers 1

save_txt_fileFunction · 0.85

Calls 1

check_dirFunction · 0.85

Tested by

no test coverage detected