(self, p)
| 646 | except: continue |
| 647 | |
| 648 | def folder_is_hidden(self, p): |
| 649 | #See SO question: https://stackoverflow.com/questions/7099290/how-to-ignore-hidden-files-using-os-listdir |
| 650 | if platform.system() is 'Windows': |
| 651 | try: |
| 652 | attribute = win32api.GetFileAttributes(p) |
| 653 | return attribute & (win32con.FILE_ATTRIBUTE_HIDDEN | win32con.FILE_ATTRIBUTE_SYSTEM) |
| 654 | except: |
| 655 | return False |
| 656 | else: |
| 657 | return p.startswith('.') |
| 658 | |
| 659 | def update_file_list(self): |
| 660 | self.max_len = 0 |