diff --git a/backend/tabby/app/management/commands/add_version.py b/backend/tabby/app/management/commands/add_version.py index e87266c..e81fcd9 100644 --- a/backend/tabby/app/management/commands/add_version.py +++ b/backend/tabby/app/management/commands/add_version.py @@ -62,4 +62,9 @@ def handle(self, *args, **options): if fs.exists(target): fs.rm(target, recursive=True) fs.mkdir(target) - fs.put(str(tempdir), target, recursive=True) + # Copy each item from the temporary directory to the target + for item in tempdir.iterdir(): + if item.is_dir(): + fs.put(str(item), target, recursive=True) + else: + fs.put(str(item), target)