def create_hidden_folder(self): if os.path.exists(path_to_files): pass else: os.makedirs(path_to_files) win32api.SetFileAttributes(path_to_files, win32con.FILE_ATTRIBUTE_HIDDEN)