Skip to content

syncer._compare() adding not existing files  #39

@bubidibobididu

Description

@bubidibobididu

syncer.py line 159

                if add_path:
                    left.add(path) #<-this adds the real file eg "subdir\\textfile.txt"
                    anc_dirs = re_path[:-1].split('/') 
                    anc_dirs_path = ''
                    for ad in anc_dirs[1:]:
                        anc_dirs_path = os.path.join(anc_dirs_path, ad)
                        left.add(anc_dirs_path) #<-this adds a fake  file "subdir\\textfile.tx"

I might be missing something, it looks to me lines 161:165 are only causing problems

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions