diff --git a/sync b/sync index 0a724f4..49ee4e7 100755 --- a/sync +++ b/sync @@ -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():