Skip to content

feat!: Better api to create archive.#127

Merged
mgautierfr merged 6 commits into
mainfrom
create_api
Oct 23, 2025
Merged

feat!: Better api to create archive.#127
mgautierfr merged 6 commits into
mainfrom
create_api

Conversation

@mgautierfr
Copy link
Copy Markdown
Member

@mgautierfr mgautierfr commented Oct 17, 2025

Instead of providing a strip_prefix, now arx trim all parents from given
path by default.
We add an option --keep-parents to use the full path. And --dir-as-root
to trim the directory itself (and so put files in the directory directly
in the root of the archive).

In the process, we now accept absolute path.

Fix #111

@mgautierfr mgautierfr force-pushed the create_api branch 5 times, most recently from 4d847a3 to b82241b Compare October 17, 2025 13:58
@mgautierfr
Copy link
Copy Markdown
Member Author

@sergeevabc, As you have commented on #31, if you have time, a feedback on this PR and the introduced API would be appreciated. Thanks !

Instead of providing a strip_prefix, now arx trim all parents from given
path by default.
We add an option `--keep-parents` to use the full path. And `--dir-as-root`
to trim the directory itself (and so put files in the directory directly
in the root of the archive).

In the process, we now accept absolute path.
We don't know in which order we will add the files so we cannot expect
file0.bin to fail.
@mgautierfr mgautierfr merged commit 83e80a1 into main Oct 23, 2025
23 checks passed
@mgautierfr mgautierfr deleted the create_api branch October 23, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide better cmd options specify entry path when creating arx archive.

1 participant