equal
deleted
inserted
replaced
389 |
389 |
390 if ignored: imatch = match |
390 if ignored: imatch = match |
391 |
391 |
392 # self.root may end with a path separator when self.root == '/' |
392 # self.root may end with a path separator when self.root == '/' |
393 common_prefix_len = len(self.root) |
393 common_prefix_len = len(self.root) |
394 if not self.root.endswith('/'): |
394 if not self.root.endswith(os.sep): |
395 common_prefix_len += 1 |
395 common_prefix_len += 1 |
396 # recursion free walker, faster than os.walk. |
396 # recursion free walker, faster than os.walk. |
397 def findfiles(s): |
397 def findfiles(s): |
398 work = [s] |
398 work = [s] |
399 while work: |
399 while work: |