mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 22:42:15 +08:00
fix share file save issue
This commit is contained in:
parent
a282aabbe7
commit
4e8c4d6e9c
@ -109,7 +109,7 @@ func RunSave(driveId string, args ...string) {
|
|||||||
list.NextMarker = list2.NextMarker
|
list.NextMarker = list2.NextMarker
|
||||||
}
|
}
|
||||||
|
|
||||||
var params []*aliyunpan.FileCopyParam
|
var params []*aliyunpan.FileSaveParam
|
||||||
files := make(map[string]*aliyunpan.ListByShareItem)
|
files := make(map[string]*aliyunpan.ListByShareItem)
|
||||||
for _, item := range list.Items {
|
for _, item := range list.Items {
|
||||||
if item.FileExtension != "" {
|
if item.FileExtension != "" {
|
||||||
@ -119,7 +119,7 @@ func RunSave(driveId string, args ...string) {
|
|||||||
}
|
}
|
||||||
files[item.FileID] = item
|
files[item.FileID] = item
|
||||||
|
|
||||||
params = append(params, &aliyunpan.FileCopyParam{
|
params = append(params, &aliyunpan.FileSaveParam{
|
||||||
ShareID: shareID,
|
ShareID: shareID,
|
||||||
FileId: item.FileID,
|
FileId: item.FileID,
|
||||||
AutoRename: true,
|
AutoRename: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user