gitignore_parser icon indicating copy to clipboard operation
gitignore_parser copied to clipboard

leading slash directory doesn't work. you will see all files within the root directory

Open rlam3 opened this issue 2 years ago • 3 comments

hey @mherrmann. thanks for this python module.

we discovered that a .gitignore with a leading slash directory doesn't work you will see all files within the root directory

for instance

root
--node_modules
--etc 

whenever you read a .gitignore with a leading slash it still is not able to pick up those paths

example .gitignore may look like the following

/node_modules

and this will return false coming back

rlam3 avatar Jan 18 '24 22:01 rlam3

UP

BUZZARDGTA avatar Apr 21 '24 20:04 BUZZARDGTA

Thanks @rlam3 for bringing that specific one to my attention.

@pacha it seems py_walk v0.3.1 is still failing on this regarding the anchored condition part.

astos-marcb avatar Jun 01 '24 08:06 astos-marcb

@astos-marcb You're correct. I fixed it now for py_walk v0.3.2. Thanks a lot for letting me know!

pacha avatar Jul 23 '24 23:07 pacha