Skip to content

Conversation

@yma955
Copy link
Member

@yma955 yma955 commented Oct 13, 2025

No description provided.

Copy link
Member

@ligangty ligangty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yma96 sorry for late review. Please see comments.

src_file = os.path.join(root_dir, file)
dest_file = os.path.join(dest_root, file)
if os.path.exists(dest_file):
overwritten_count += 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should do this overwritten copy. Instead we can just mark it as "duplicated"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just think one case: if has two same files name, but content may not be consistent, we will always keep the latter coming one as the latest to override, @ligangty WDYT?
I also thought of the checksum method, but it might cost much for the thousands of comparisons, but such situations that require override are rare.

Copy link
Member

@ligangty ligangty Oct 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to do this, because we don't know which one is the right one. If there is overlapping, let's always consider the first one as the right one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@ligangty ligangty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Let's merge this PR and see the test result to see if any issues.

@yma955 yma955 merged commit d927796 into Commonjava:1.3.x Oct 23, 2025
17 checks passed
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.

2 participants