I configured rclone with Sharepoint to use a root_folder_id. When I execute ls or lsd on the remote: (without any paths) I get the root folder content. But when I use sync or copy also without any paths the files end up in the root of the Sharepoint site and not in the folder from the root_folder_id.
Version:
rclone v1.69.0
os/version: Microsoft Windows 11 Pro 24H2 24H2 (64 bit)
Thanks for the tip. Confirmed that indeed it seems like a bug. As we can see in the dump below that first rclone checks for the file in the correct destination folder and then does the put to the root of the site
2025/02/03 12:48:16 NOTICE: Automatically setting -vv as --dump is enabled
2025/02/03 12:48:16 DEBUG : rclone: Version "v1.68.1" starting with parameters ["rclone" "--config" "rclone.conf" "copy" "d:\\test" "sharepoint:" "--dump=headers"]
2025/02/03 12:48:16 DEBUG : Creating backend with remote "d:\\test"
2025/02/03 12:48:16 DEBUG : Using config file from "C:\\Program Files\\rclone\\rclone.conf"
2025/02/03 12:48:16 DEBUG : fs cache: renaming cache item "d:\\test" to be canonical "//?/d:/test"
2025/02/03 12:48:16 DEBUG : Creating backend with remote "sharepoint:"
2025/02/03 12:48:16 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2025/02/03 12:48:16 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/03 12:48:16 DEBUG : HTTP REQUEST (req 0xc0003d63c0)
2025/02/03 12:48:16 DEBUG : GET /v1.0/drives/<snip--Library--snip>/items/<snip-Folder--snip>/children?$top=1000 HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.68.1
Authorization: XXXX
Accept-Encoding: gzip
2025/02/03 12:48:16 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/03 12:48:16 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/03 12:48:16 DEBUG : HTTP RESPONSE (req 0xc0003d63c0)
2025/02/03 12:48:16 DEBUG : HTTP/2.0 200 OK
Cache-Control: no-store, no-cache
Client-Request-Id:<--snip-->
Content-Type: application/json; odata.metadata=minimal; odata.streaming=true; IEEE754Compatible=false; charset=utf-8
Date: Mon, 03 Feb 2025 17:48:16 GMT
Request-Id:<--snip-->
Strict-Transport-Security: max-age=31536000
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"008","RoleInstance":"<--snip-->"}}
2025/02/03 12:48:16 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/03 12:48:16 DEBUG : New Microsoft Word Document.docx: Need to transfer - File not found at Destination
2025/02/03 12:48:16 DEBUG : New Text Document.txt: Need to transfer - File not found at Destination
2025/02/03 12:48:16 DEBUG : OneDrive root '': Waiting for checks to finish
2025/02/03 12:48:16 DEBUG : OneDrive root '': Waiting for transfers to finish
2025/02/03 12:48:16 DEBUG : New Microsoft Word Document.docx: Starting singlepart upload
2025/02/03 12:48:16 DEBUG : New Text Document.txt: Starting multipart upload
2025/02/03 12:48:16 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/03 12:48:16 DEBUG : HTTP REQUEST (req 0xc0003d7a40)
2025/02/03 12:48:16 DEBUG : PUT /v1.0/drives/<snip--Library--snip>/root:/New%20Microsoft%20Word%20Document.docx:/content HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.68.1
Content-Length: 0
Authorization: XXXX
Accept-Encoding: gzip
2025/02/03 12:48:16 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/03 12:48:16 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/03 12:48:16 DEBUG : HTTP REQUEST (req 0xc0003d7e00)
2025/02/03 12:48:16 DEBUG : POST /v1.0/drives/<snip--Library--snip>/root:/New%20Text%20Document.txt:/createUploadSession HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.68.1
Content-Length: 124
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip
2025/02/03 12:48:16 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/03 12:48:16 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/03 12:48:16 DEBUG : HTTP RESPONSE (req 0xc0003d7a40)
2025/02/03 12:48:16 DEBUG : HTTP/2.0 200 OK
Cache-Control: no-store, no-cache
Client-Request-Id:<--snip-->
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Mon, 03 Feb 2025 17:48:16 GMT
Odata-Version: 4.0
Request-Id:<--snip-->
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"008","RoleInstance":"<--snip-->"}}
2025/02/03 12:48:16 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/03 12:48:16 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/03 12:48:16 DEBUG : HTTP REQUEST (req 0xc000374780)
2025/02/03 12:48:16 DEBUG : PATCH /v1.0/drives/<snip--Library--snip>/root:/New%20Microsoft%20Word%20Document.docx: HTTP/1.1
Host: graph.microsoft.com
User-Agent: rclone/v1.68.1
Content-Length: 111
Authorization: XXXX
Content-Type: application/json
Accept-Encoding: gzip
2025/02/03 12:48:16 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/03 12:48:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/03 12:48:17 DEBUG : HTTP RESPONSE (req 0xc0003d7e00)
2025/02/03 12:48:17 DEBUG : HTTP/2.0 200 OK
Cache-Control: no-store, no-cache
Client-Request-Id:<--snip-->
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Mon, 03 Feb 2025 17:48:17 GMT
Location: https://graph.microsoft.com
Odata-Version: 4.0
Request-Id:<--snip-->
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"008","RoleInstance":"<--snip-->"}}
2025/02/03 12:48:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/03 12:48:17 DEBUG : New Text Document.txt: Uploading segment 0/3 size 3
2025/02/03 12:48:17 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/03 12:48:17 DEBUG : HTTP REQUEST (req 0xc0003752c0)
2025/02/03 12:48:17 DEBUG : PUT /sites/ANDA/_api/v2.0/drives/<snip--Library--snip>/items/01LZCZ23HHVBQFXA7OEBH223DDTERR67VA/uploadSession?<--snip-->HTTP/1.1
Host: chartwell.sharepoint.com
User-Agent: rclone/v1.68.1
Content-Length: 3
Content-Range: bytes 0-2/3
Accept-Encoding: gzip
2025/02/03 12:48:17 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2025/02/03 12:48:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/03 12:48:17 DEBUG : HTTP RESPONSE (req 0xc000374780)
2025/02/03 12:48:17 DEBUG : HTTP/2.0 200 OK
Cache-Control: no-store, no-cache
Client-Request-Id:<--snip-->
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Mon, 03 Feb 2025 17:48:17 GMT
Odata-Version: 4.0
Request-Id:<--snip-->
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Ms-Ags-Diagnostic: {"ServerInfo":{"DataCenter":"East US","Slice":"E","Ring":"5","ScaleUnit":"008","RoleInstance":"<--snip-->"}}
2025/02/03 12:48:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/03 12:48:17 DEBUG : New Microsoft Word Document.docx: quickxor = 0000000000000000000000000000000000000000 OK
2025/02/03 12:48:17 INFO : New Microsoft Word Document.docx: Copied (new)
2025/02/03 12:48:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/03 12:48:17 DEBUG : HTTP RESPONSE (req 0xc0003752c0)
2025/02/03 12:48:17 DEBUG : HTTP/2.0 200 OK
Alt-Svc: h3=":443";ma=86400
Cache-Control: no-cache, no-store
Content-Security-Policy: frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com teams.cloud.microsoft *.office365.com goals.cloud.microsoft *.powerapps.com *.powerbi.com *.yammer.com engage.cloud.microsoft word.cloud.microsoft excel.cloud.microsoft powerpoint.cloud.microsoft *.officeapps.live.com *.office.com *.microsoft365.com m365.cloud.microsoft *.cloud.microsoft *.stream.azure-test.net *.microsoftstream.com *.dynamics.com *.microsoft.com onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com;
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
Date: Mon, 03 Feb 2025 17:48:17 GMT
Expires: -1
Isocdi: 0
Microsoftsharepointteamservices: 16.0.0.25722
Ms-Cv: <--snip-->.0
Odata-Version: 4.0
P3p: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
Pragma: no-cache
Request-Id:<--snip-->
Spclientservicerequestduration: 558
Sprequestduration: 559
Sprequestguid:<--snip-->
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-1dscollectorurl: https://mobile.events.data.microsoft.com/OneCollector/1.0/
X-Ariacollectorurl: https://browser.pipe.aria.microsoft.com/Collector/3.0/
X-Aspnet-Version: 4.0.30319
X-Cache: CONFIG_NOCACHE
X-Content-Type-Options: nosniff
X-Databoundary: NONE
X-Frame-Options: SAMEORIGIN
X-Ms-Invokeapp: 1; RequireReadOnly
X-Msedge-Ref: Ref A: DBC66A6659564241BEE9106F33739E11 Ref B: EWR311000108031 Ref C: 2025-02-03T17:48:17Z
X-Networkstatistics: 0,4204800,43,457,1143495,0,1773622,40
X-Powered-By: ASP.NET
X-Sharepointhealthscore: 0
X-Sp-Serverstate: ReadOnly=0
2025/02/03 12:48:17 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2025/02/03 12:48:17 DEBUG : New Text Document.txt: quickxor = 7728c31d00000000000000000300000000000000 OK
2025/02/03 12:48:17 INFO : New Text Document.txt: Copied (new)
2025/02/03 12:48:17 INFO :
Transferred: 3 B / 3 B, 100%, 3 B/s, ETA 0s
Transferred: 2 / 2, 100%
Elapsed time: 1.8s
2025/02/03 12:48:17 DEBUG : 8 go routines active