MCPcopy Create free account
hub / github.com/badyun/AShare / list

Method list

utils/cloud.js:74–94  ·  view source on GitHub ↗
(parent_file_id = 'root', limit = 200, order_by = 'name', order_direction = 'ASC', marker = null, list = [])

Source from the content-addressed store, hash-verified

72
73 // 列出文件
74 async list(parent_file_id = 'root', limit = 200, order_by = 'name', order_direction = 'ASC', marker = null, list = []) {
75 let s = await this.http('https://api.aliyundrive.com/v2/file/list', {
76 drive_id: this.info.default_drive_id,
77 fields: "*",
78 image_thumbnail_process: "image/resize,w_160/format,jpeg",
79 image_url_process: "image/resize,w_1920/format,jpeg",
80 limit: limit,
81 marker: null,
82 order_by: order_by,
83 order_direction: order_direction,
84 parent_file_id: parent_file_id,
85 video_thumbnail_process: "video/snapshot,t_0,f_jpg,w_300"
86 })
87 // console.log(s)
88 list = list.concat(s.items)
89 if (s.next_marker) {
90 return this.list(parent_file_id, limit, order_by, order_direction, marker, list)
91 } else {
92 return list
93 }
94 }
95
96 // 获取文件信息
97 async node(file_id, user_name) {

Callers 2

getFunction · 0.80
getFunction · 0.80

Calls 1

httpMethod · 0.80

Tested by

no test coverage detected