first commit

This commit is contained in:
Digital Studium 2023-07-22 23:24:37 +03:00
commit 26a8b2b842
1 changed files with 18 additions and 0 deletions

18
common.py Normal file
View File

@ -0,0 +1,18 @@
import os
import shutil
def read_file(file_path):
with open(file_path, 'r') as f:
file_content = f.read()
return file_content
def write_file(file_path, content):
with open(file_path, 'w') as f:
f.write(content)
def copy_file(src, dst):
os.makedirs(os.path.dirname(dst), exist_ok=True)
shutil.copy2(src, dst)