We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a66818 commit e79a5fbCopy full SHA for e79a5fb
1 file changed
pkg/filesystem/onedrive/onedrive.ts
@@ -123,8 +123,12 @@ export default class OneDriveFileSystem implements FileSystem {
123
}
124
125
list(): Promise<File[]> {
126
+ let { path } = this;
127
+ if (path === "/") {
128
+ path = "";
129
+ }
130
return this.request(
- `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`
132
).then((data) => {
133
const list: File[] = [];
134
data.value.forEach((val: any) => {
0 commit comments