mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2026-01-21 14:34:19 +01:00
refactor: adjust structure
This commit is contained in:
8
src/utils/io.py
Normal file
8
src/utils/io.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import os
|
||||
import shutil
|
||||
|
||||
|
||||
def recreate_folder(folder_path):
|
||||
if os.path.exists(folder_path) and os.path.isdir(folder_path):
|
||||
shutil.rmtree(folder_path)
|
||||
os.makedirs(folder_path)
|
||||
Reference in New Issue
Block a user