INNER CODE UNIT · Python
get_file_list
GraiaProject/Ariadne · src/graia/ariadne/app.py:420
async def get_file_list(
self,
target: Union[Group, int],
id: str = "",
offset: Optional[int] = 0,
size: Optional[int] = 1,
with_download_info: bool = False,
) -> List[FileInfo]:
"""
列出指定文件夹下的所有文件.
Args:
target (Union[Group, int]): 要列出文件的根位置, \
为群组或群号 (当前仅支持群组)
id (str): 文件夹ID, 空串为根目录
offset (int): 分页偏移
size (int): 分页大小
with_download_info (bool): 是否携带下载信息, 无必要不要携带