Skip to content

Commit

Permalink
🐛 修复onedrive查看备份文件
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Dec 18, 2022
1 parent 3a66818 commit e79a5fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/filesystem/onedrive/onedrive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,12 @@ export default class OneDriveFileSystem implements FileSystem {
}

list(): Promise<File[]> {
let { path } = this;
if (path === "/") {
path = "";
}
return this.request(
`https://graph.microsoft.com/v1.0/me/drive/special/approot:${this.path}:/children`
`https://graph.microsoft.com/v1.0/me/drive/special/approot:${path}:/children`
).then((data) => {
const list: File[] = [];
data.value.forEach((val: any) => {
Expand Down

0 comments on commit e79a5fb

Please sign in to comment.