dirsync icon indicating copy to clipboard operation
dirsync copied to clipboard

syncer._compare() adding not existing files

Open bubidibobididu opened this issue 5 years ago • 1 comments

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

bubidibobididu avatar Dec 24 '20 19:12 bubidibobididu

Hi, If this is still an issue, could you please provide a failing test case?

tkhyn avatar Feb 09 '25 10:02 tkhyn