Open StefanoGITA opened 9 months ago
In sharepoint “server relative path” should look like this:
“https.{domain/tenant}.sharepoint.com” {server relative}—> /sites/{site name}
In sharepoint “server relative path” should look like this:
“https.{domain/tenant}.sharepoint.com” {server relative}—> /sites/{site name}
Hi @Danxx26hub On documentatio: https://github.com/vgrem/Office365-REST-Python-Client/blob/master/examples/sharepoint/files/download.py the path is show in this way:
file_url = "Shared Documents/big_buck_bunny.mp4"
# file_url = "Shared Documents/!2022/Financial Sample.xlsx"
Also show on description of the method: Office365-REST-Python-Client/office365/sharepoint/webs /web.py
And how You ca see from the error that i put on issue my path start with /sistes: "/sites/***/_SALVA_APPOGGIO_OA/progettoOA.zip" (obviously the starts are putted by me to don't show th real path)
hi @StefanoGITA did you solve your question, i;m facing same issue with no solution :/
I find an issue when I try to use the method get_file_by_server_relative_path of this lib (Office365-REST-Python-Client]).
The connection to the sharepoint goes well, but when i try to get a file that I'm sure that is there, I get this error:
I used the code of the example reported on the lib (see lower), so I don't understand because the lib don't find the file that (as I wrote) I'm sure that exists in that path.
Someone can help me? Thanks.