This commit is contained in:
Kovid Goyal 2026-05-06 12:15:08 +05:30
parent 6d17f32bcf
commit 5ec8c52025
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -112,7 +112,7 @@ type remote_dir_entry struct {
const case_conflict_template = "case-conflict-%d-%s"
func uniqify_child_names(names []string, is_case_sensitive_filesystem bool) []string {
if is_case_sensitive_filesystem {
if !is_case_sensitive_filesystem {
seen := utils.NewSet[string](len(names))
for i, x := range names {
name := x
@ -349,7 +349,7 @@ func (d *remote_dir_entry) add_remote_data(data []byte, output_buf []byte, has_m
handle := new_dir_handle(f)
defer handle.unref()
s := utils.NewSeparatorScanner("", "\x00")
for _, name := range uniqify_child_names(s.Split(dest.String()), !is_case_sensitive_filesystem) {
for _, name := range uniqify_child_names(s.Split(dest.String()), is_case_sensitive_filesystem) {
d.children = append(d.children, &remote_dir_entry{name: name, base_dir: handle.newref()})
}
}