[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DEP-5: an example parser, choice of syntax for Files:



Benjamin Drung wrote:

> You can get rid of those './' by replacing . with *:
> 
>     find * -path 'debian/*'

That's not entirely equivalent; shells do not expand globs to include
files beginning with "." by default.

Jon, I would suggest using os.walk and fnmatch - it will cover this
issue and will remove the requirement to execute a subprocess.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org
       `-

Attachment: signature.asc
Description: PGP signature


Reply to: