561 ): |
561 ): |
562 # entry doesn't fit the given pattern |
562 # entry doesn't fit the given pattern |
563 continue |
563 continue |
564 |
564 |
565 if dirEntry.is_dir(): |
565 if dirEntry.is_dir(): |
566 if ( |
566 if dirEntry.path in ignoreList or ( |
567 dirEntry.path in ignoreList |
567 dirEntry.is_symlink() and not followsymlinks |
568 or dirEntry.is_symlink() and not followsymlinks |
|
569 ): |
568 ): |
570 continue |
569 continue |
571 if recursive: |
570 if recursive: |
572 files += direntries( |
571 files += direntries( |
573 dirEntry.path, |
572 dirEntry.path, |