MCPcopy Create free account
hub / github.com/RainingComputers/whipFTP / folder_is_hidden

Method folder_is_hidden

whipFTP_FileDialogs.py:648–657  ·  view source on GitHub ↗
(self, p)

Source from the content-addressed store, hash-verified

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

Callers 1

update_file_listMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected