mirror of https://github.com/Xhofe/alist
				
				
				
			
							parent
							
								
									fa15c576f0
								
							
						
					
					
						commit
						5084d98398
					
				|  | @ -127,7 +127,7 @@ func (d *Onedrive) Request(url string, method string, callback base.ReqCallback, | |||
| 
 | ||||
| func (d *Onedrive) getFiles(path string) ([]File, error) { | ||||
| 	var res []File | ||||
| 	nextLink := d.GetMetaUrl(false, path) + "/children?$top=5000&$expand=thumbnails($select=medium)&$select=id,name,size,fileSystemInfo,content.downloadUrl,file,parentReference" | ||||
| 	nextLink := d.GetMetaUrl(false, path) + "/children?$top=1000&$expand=thumbnails($select=medium)&$select=id,name,size,fileSystemInfo,content.downloadUrl,file,parentReference" | ||||
| 	for nextLink != "" { | ||||
| 		var files Files | ||||
| 		_, err := d.Request(nextLink, http.MethodGet, nil, &files) | ||||
|  |  | |||
|  | @ -118,7 +118,7 @@ func (d *OnedriveAPP) Request(url string, method string, callback base.ReqCallba | |||
| 
 | ||||
| func (d *OnedriveAPP) getFiles(path string) ([]File, error) { | ||||
| 	var res []File | ||||
| 	nextLink := d.GetMetaUrl(false, path) + "/children?$top=5000&$expand=thumbnails($select=medium)&$select=id,name,size,lastModifiedDateTime,content.downloadUrl,file,parentReference" | ||||
| 	nextLink := d.GetMetaUrl(false, path) + "/children?$top=1000&$expand=thumbnails($select=medium)&$select=id,name,size,lastModifiedDateTime,content.downloadUrl,file,parentReference" | ||||
| 	for nextLink != "" { | ||||
| 		var files Files | ||||
| 		_, err := d.Request(nextLink, http.MethodGet, nil, &files) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 shingyu
						shingyu