Skip to content

Commit

Permalink
command for deleting files
Browse files Browse the repository at this point in the history
  • Loading branch information
thusser committed Apr 28, 2022
1 parent ce96360 commit a256ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyobs_archive/api/management/commands/delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def handle(self, *args, files: list = None, **options):
for d in to_delete:
# get filename
root = settings.ARCHIVE_ROOT
filename = os.path.join(root, frame.path, frame.basename + '.fits.fz')
filename = os.path.join(root, d.path, d.basename + '.fits.fz')

# delete file
os.remove(filename)
Expand Down

0 comments on commit a256ce7

Please sign in to comment.