Skip to content

Commit

Permalink
commands.init:import_files - fix splitting of file path
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Dec 18, 2024
1 parent 4bbbcc2 commit a76fab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion digiarch/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def import_files(ctx: Context, avid: AVID, db: FilesDB, db_old: Connection, *log
reason="File is not in OriginalDocuments",
)
continue
path = avid.dirs.original_documents.joinpath(*path_parts[path_parts.index("originaldocuments") + 1 :])
path = avid.dirs.original_documents.joinpath(*path.parts[path_parts.index("originaldocuments") + 1 :])
if not path.is_file():
Event.from_command(ctx, "skip").log(
WARNING,
Expand Down

0 comments on commit a76fab3

Please sign in to comment.