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