Skip to content

Commit

Permalink
commands.identify:identify_original_file - add output when a file is …
Browse files Browse the repository at this point in the history
…skipped because it is locked
  • Loading branch information
MatteoCampinoti94 committed Jan 16, 2025
1 parent 45642e9 commit 52fb580
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions digiarch/commands/identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ def identify_original_file(
if existing_file and not update:
return
if existing_file and existing_file.lock and not ignore_lock:
Event.from_command(ctx, "skip", (existing_file.uuid, "original")).log(
INFO,
*loggers,
locked=True,
path=existing_file.relative_path,
)
return

file = OriginalFile.from_file(siegfried_file.filename, avid.path, parent=parent)
Expand Down

0 comments on commit 52fb580

Please sign in to comment.