mirror of
https://gitlab.com/cief-data/data-management.git
synced 2026-08-19 04:13:57 +00:00
C2M Scrape add
This commit is contained in:
@@ -22,6 +22,13 @@ def delete_csv_in_path(path):
|
||||
os.unlink(path)
|
||||
print("[Delete Temp Complete]", path)
|
||||
|
||||
def delete_csv_or_png_in_path(path):
|
||||
for folder, subfolders, files in os.walk(path):
|
||||
for file in files:
|
||||
if file.endswith('.csv') or file.endswith('.png'):
|
||||
path = os.path.join(folder, file)
|
||||
os.unlink(path)
|
||||
print("[Delete Temp Complete]", path)
|
||||
|
||||
def change_to_current_directory():
|
||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
Reference in New Issue
Block a user