Added automatic folder creation

This commit is contained in:
GaspardCulis 2023-09-28 11:08:06 +02:00
parent 9442a160c7
commit 23f762ae3b

3
sync
View file

@ -22,6 +22,9 @@ synced_files = [
def save():
for p in synced_files:
folder = "/".join(p[0].split("/")[0:-1])
if not os.path.exists(folder):
os.mkdir(folder)
os.system(f"rsync -r {p[1]} {p[0]}")
def restore():