def _GetRootChildren(self, args, token=None): client_id = str(args.client_id) items = [] fs_item = ApiFile() fs_item.name = "fs" fs_item.path = "fs" fs_item.is_directory = True items.append(fs_item) temp_item = ApiFile() temp_item.name = "temp" temp_item.path = "temp" temp_item.is_directory = True items.append(temp_item) if data_store_utils.GetClientOs(client_id) == "Windows": registry_item = ApiFile() registry_item.name = "registry" registry_item.path = "registry" registry_item.is_directory = True items.append(registry_item) if args.count: items = items[args.offset:args.offset + args.count] else: items = items[args.offset:] return ApiListFilesResult(items=items)
def client_os(self): try: return self._client_os except AttributeError: self._client_os = data_store_utils.GetClientOs(self.client_id) return self._client_os
def client_os(self) -> str: if self._client_os is None: self._client_os = data_store_utils.GetClientOs(self.client_id) return self._client_os
def client_os(self): if self._client_os is None: self._client_os = data_store_utils.GetClientOs(self.client_id, token=self.token) return self._client_os