Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion backend/tabby/app/management/commands/add_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)