MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / is_folder_hidden

Function is_folder_hidden

web/pgadmin/misc/file_manager/__init__.py:115–125  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

113
114# check if file is hidden in windows platform
115def is_folder_hidden(filepath):
116 if _platform == "win32":
117 try:
118 attrs = ctypes.windll.kernel32.GetFileAttributesW(filepath)
119 assert attrs != -1
120 result = bool(attrs & 2)
121 except (AttributeError, AssertionError):
122 result = False
123 return result
124 else:
125 return os.path.basename(filepath).startswith('.')
126
127
128def read_file_generator(file, enc):

Callers 1

get_files_in_pathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected