Exchange Extract,Load, and delete temp

This commit is contained in:
Yam ZhengLim
2022-08-22 19:22:11 +08:00
parent 39e707ce46
commit 276e1b87fb
5 changed files with 25 additions and 21 deletions
+10
View File
@@ -10,3 +10,13 @@ def read_json_file(path, name):
print(e)
print("[FUNCTION_ERROR]-read_json_file:" , name)
return False
def delete_csv_in_path(path):
for folder, subfolders, files in os.walk(path):
for file in files:
if file.endswith('.csv'):
path = os.path.join(folder, file)
print('deleted : ', path )
os.remove(path)
print("[Delete Temp Complete]",files)