first commit
This commit is contained in:
8
src/services/file_utils.py
Normal file
8
src/services/file_utils.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import re
|
||||
import os
|
||||
|
||||
def clean_filename(filename):
|
||||
return re.sub(r'[\\/*?:"<>|]', '_', filename)
|
||||
|
||||
def ensure_directory(directory):
|
||||
os.makedirs(directory, exist_ok=True)
|
||||
Reference in New Issue
Block a user