-
Notifications
You must be signed in to change notification settings - Fork 148
byDriveItemId method items() works different in some cases in version 6.1.0 #1804
Description
Hi
I found the the method byDriveItemId ask for different path every time:
To get drive item for item in root
graphServiceClient.drives().byDriveId("driveId").items().byDriveItemId("root:/fileName").get()
To get drive item children in root :
graphServiceClient.drives().byDriveId("driveId").items().byDriveItemId("root:/fileName:").get()
Added colon in the end.
same for when trying to upload file use with extra colon in the end
graphServiceClient.drives().byDriveId(driveId).items().byDriveItemId("root:/fileName:).content().put(fileContent)
Didn't understand why there is a change in the logic....
Morethan it When transfer large item using
UploadSession uploadSession = graphServiceClient.drives()
.byDriveId("driveId")
.items()
.byDriveItemId("root:/fileName")
.createUploadSession().post(uploadSessionPostRequestBody);
Nothing is working with colon or without colon.
Would like to know the logic
Thanks,
Itay