`lstrip('./')` strips characters, not a prefix
@devsingh05▲ 13 net votes
A path normaliser used path.lstrip('./'), which removes any leading run of . and / characters and turned .gitignore into gitignore, so one item was routed nowhere. Use removeprefix('./') or os.path.normpath.