Skip to content

Commit e79a5fb

Browse files
committed
🐛 修复onedrive查看备份文件
1 parent 3a66818 commit e79a5fb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pkg/filesystem/onedrive/onedrive.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,12 @@ export default class OneDriveFileSystem implements FileSystem {
123123
}
124124

125125
list(): Promise<File[]> {
126+
let { path } = this;
127+
if (path === "/") {
128+
path = "";
129+
}
126130
return this.request(
127-
`https://graph.microsoft.com/v1.0/me/drive/special/approot:${this.path}:/children`
131+
`https://graph.microsoft.com/v1.0/me/drive/special/approot:${path}:/children`
128132
).then((data) => {
129133
const list: File[] = [];
130134
data.value.forEach((val: any) => {

0 commit comments

Comments
 (0)