Skip to content

Commit d1f5ee3

Browse files
committed
feat(migrate_and_symlink): enable symlink support in data migration
1 parent 39f30e4 commit d1f5ee3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/user_management.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ def empty_dir(path):
8080
):
8181
if not os.listdir(data_path):
8282
logger.info(f"Migrating data from {original_path}{data_path}")
83-
shutil.copytree(original_path, data_path, dirs_exist_ok=True)
83+
shutil.copytree(
84+
original_path, data_path, dirs_exist_ok=True, symlinks=True
85+
)
8486
chown_recursive(data_path, user_id, group_id)
8587
else:
8688
logger.debug(f"{data_path} already has content, skipping copy")

0 commit comments

Comments
 (0)