Skip to content

a couple of stupid questions #148

Answered by rikyoz
j2969719 asked this question in Q&A
Jun 25, 2023 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

initially used only addFile, but in this case dates/attributes and empty directories were lost

addFile ignoring empty directories is the expected behavior; on the other hand, this method should preserve the dates/attributes of the file being added, so I'll need to investigate this.

at the moment I use addItems, but since when adding a directory, files are also added

Yeah, it's the expected behavior.

duplicates appear in the archive even with setUpdateMode(UpdateMode::Update);

This is probably due to the fact that the duplicates check is performed only in the case of updating an existing archive, and it considers only duplicates between the new items being added and the old ones alre…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@j2969719
Comment options

@rikyoz
Comment options

Answer selected by j2969719
@j2969719
Comment options

Comment options

You must be logged in to vote
1 reply
@rikyoz
Comment options

Comment options

You must be logged in to vote
2 replies
@rikyoz
Comment options

@j2969719
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants