使用专门的make命令生成 src_files.txt

This commit is contained in:
2025-01-17 19:55:18 +08:00
parent e202cbfdbe
commit 01283e9f23
3 changed files with 19 additions and 2 deletions

View File

@@ -15,6 +15,10 @@ def clear(dir_path:str,rm_dir:str):
shutil.rmtree(path)
else:
clear(path,rm_dir)
elif os.path.isfile(path):
if item == rm_dir:
print('remove: ',path)
os.remove(path)
@@ -22,4 +26,5 @@ def clear(dir_path:str,rm_dir:str):
if __name__ == "__main__":
clear('../','.output')
clear('../','src_files.txt')