mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
11 lines
253 B
Python
11 lines
253 B
Python
# 24.01.24
|
|
|
|
# Import
|
|
import shutil, os
|
|
|
|
def remove_folder(folder_path):
|
|
if os.path.exists(folder_path):
|
|
try:
|
|
shutil.rmtree(folder_path)
|
|
except OSError as e:
|
|
print(f"Error removing folder '{folder_path}': {e}") |