Skip to content

Commit

Permalink
#1299 don't use relPath to rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
andreleblanc11 authored and petersilva committed Jan 28, 2025
1 parent 7312243 commit 61f1e1b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sarracenia/flowcb/rename/raw2bulletin.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,7 @@ def after_gather(self,worklist):
if 'isProblem' in msg:
del(msg['isProblem'])

# Need to update the relPath with new filename, because it's not an after_accept. new_dir and new_file don't exist.
parts = msg['relPath'].split('/')
parts[-1] = new_file
msg['relPath'] = '/'.join(parts)
msg['rename'] = new_file

logger.info(f"New filename: {new_file}")
new_worklist.append(msg)
Expand Down

0 comments on commit 61f1e1b

Please sign in to comment.