Skip to content

Commit

Permalink
chore: filter out sync device
Browse files Browse the repository at this point in the history
  • Loading branch information
a1mersnow committed Nov 25, 2023
1 parent df61060 commit f381f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/aliyun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function getFileListOfCurrentDir(parentId = getParentId()) {
parent_file_id: parentId,
url_expire_sec: 14400,
})
return res.items as Resource[]
return res.items.filter((x: any) => !x.sync_device_flag) as Resource[]
}

async function rename(driveId: string, fileId: string, newName: string) {
Expand Down

0 comments on commit f381f2b

Please sign in to comment.