使用专门的make命令生成 src_files.txt
This commit is contained in:
@@ -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')
|
||||
|
||||
|
Reference in New Issue
Block a user