mirror of
https://gitlab.com/cief-data/data-management.git
synced 2026-08-19 04:13:57 +00:00
Exchange Extract,Load, and delete temp
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user