Skip to content

Uploading a directory with --keep-directories messes up the destination path #715

@adriaan1313

Description

@adriaan1313

Basically:
doing ia upload --keep-directories "trugkieke-2011" "Trugkieke 2011\HD" put the file in
/Trugkieke 2011/HDTrugkieke 2011/HD/1232301.json

It is unnecessary to use --keep-directories when uploading a directory, but I didn't know that (because it is needed for specific files).
So it is inconsistent.
When doing ia upload --keep-directories "trugkieke-2011" "Trugkieke 2011\HD\1230662.json", it goes to Trugkieke 2011\HD\1230662.json.
Doing ia upload "trugkieke-2011" "Trugkieke 2011\HD" does get the intended outcome, but i can imagine no circumstance where it'd be reasonable to take the directory path and duplicate it like /Trugkieke 2011/HDTrugkieke 2011/HD/.

(note: where the file goes is copied from the command output. For some reason, when doing ia upload --keep-directories "trugkieke-2011" "Trugkieke 2011\HD\1230662.json", it output the path with backslashes, but every other time it did forward slashes)

I am on version 5.5.1 and on windows with python 3.11.4.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions