File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export default class OneDriveFileSystem implements FileSystem {
66
66
parent = `:${ parent } :` ;
67
67
}
68
68
return this . request (
69
- `https://graph.microsoft.com/v1.0/drive/special/approot${ parent } /children` ,
69
+ `https://graph.microsoft.com/v1.0/me/ drive/special/approot${ parent } /children` ,
70
70
{
71
71
method : "POST" ,
72
72
headers : myHeaders ,
@@ -119,7 +119,7 @@ export default class OneDriveFileSystem implements FileSystem {
119
119
120
120
delete ( path : string ) : Promise < void > {
121
121
return this . request (
122
- `https://graph.microsoft.com/v1.0/drive/special/approot:${ joinPath (
122
+ `https://graph.microsoft.com/v1.0/me/ drive/special/approot:${ joinPath (
123
123
this . path ,
124
124
path
125
125
) } `,
@@ -143,7 +143,7 @@ export default class OneDriveFileSystem implements FileSystem {
143
143
path = `:${ path } :` ;
144
144
}
145
145
return this . request (
146
- `https://graph.microsoft.com/v1.0/drive/special/approot${ path } /children`
146
+ `https://graph.microsoft.com/v1.0/me/ drive/special/approot${ path } /children`
147
147
) . then ( ( data ) => {
148
148
const list : File [ ] = [ ] ;
149
149
data . value . forEach ( ( val : any ) => {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export class OneDriveFileReader implements FileReader {
18
18
19
19
async read ( type ?: "string" | "blob" ) : Promise < string | Blob > {
20
20
const data = await this . fs . request (
21
- `https://graph.microsoft.com/v1.0/drive/special/approot:${ joinPath (
21
+ `https://graph.microsoft.com/v1.0/me/ drive/special/approot:${ joinPath (
22
22
this . file . path ,
23
23
this . file . name
24
24
) } :/content`,
@@ -69,7 +69,7 @@ export class OneDriveFileWriter implements FileWriter {
69
69
myHeaders . append ( "Content-Type" , "application/json" ) ;
70
70
const uploadUrl = await this . fs
71
71
. request (
72
- `https://graph.microsoft.com/v1.0/drive/special/approot:${ this . path } :/createUploadSession` ,
72
+ `https://graph.microsoft.com/v1.0/me/ drive/special/approot:${ this . path } :/createUploadSession` ,
73
73
{
74
74
method : "POST" ,
75
75
headers : myHeaders ,
You can’t perform that action at this time.
0 commit comments