Hello Experts,
I am using rclone in rcd mode (http://myip:5572).
I have a need to identify whether the requested source is file or directory, so using below end point to get that info -
http://myip:5572/operations/stat
Now it works fine with AWS S3, GCS but facing one issue with ADLS (Azure data store).
Response is as expected when the source is a file but when source is directory its response is unexpected.
Please take a look at below 3 scenarios request & responses -
Scenario one is working as expected but not 2 & 3.
http://:5572/operations/stat
Scenario 1)
Request -
{
"fs": "appsettingchanges_6019_ADLS_82c880d2_bb71_45d1_96be_08db1bc37687:",
"remote": "/o9datalake/Folder1/In_SalesDomain.csv"
}
Response - 200
Response body -
{
"item": {
"Path": "/o9datalake/Folder1/In_SalesDomain.csv",
"Name": "In_SalesDomain.csv",
"Size": 11413,
"MimeType": "text/csv; charset=utf-8",
"ModTime": "2022-10-05T03:59:16.000000000Z",
"IsDir": false,
"Tier": "Hot"
}
}
Scenario 2)
Request -
{
"fs": "appsettingchanges_6019_ADLS_82c880d2_bb71_45d1_96be_08db1bc37687:",
"remote": "/o9datalake/Folder1"
}
Response - 500
Response body -
{
"error": "bucket or container name is needed in remote",
"input": {
"fs": "appsettingchanges_6019_ADLS_82c880d2_bb71_45d1_96be_08db1bc37687:",
"remote": "/o9datalake/Folder1"
},
"path": "operations/stat",
"status": 500
}
Scenario 3)
Request -
{
"fs": "appsettingchanges_6019_ADLS_82c880d2_bb71_45d1_96be_08db1bc37687:",
"remote": "o9datalake/Folder1/"
}
Response - 200
Response body -
{
"item": null
}
Remote :
Rclone version - rclone v1.57.0
Could you please suggest me on this ?
Thanks,
Mahendra