yandex: add app_folder option to support cloud_api:disk.app_folder OAuth scope - Fixes #9848

This commit is contained in:
Sanjay Kanth A
2026-09-08 16:40:17 +01:00
committed by GitHub
parent 2cec6065d3
commit 13084df67c
3 changed files with 143 additions and 17 deletions
+10
View File
@@ -125,6 +125,16 @@ are replaced.
Invalid UTF-8 bytes will also be [replaced](/overview/#invalid-utf8),
as they can't be used in JSON strings.
### Application folder
If you registered your own OAuth application with Yandex and only granted
it the "Application Folder" permission (`cloud_api:disk.app_folder`)
instead of full disk access, then you must set the `app_folder` option to
`true`. Yandex Disk requires paths to be addressed with an `app:/` prefix
instead of the usual `disk:/` prefix when using this restricted scope, and
rclone will return a 403 Forbidden error on every request if this option
isn't set correctly for the token in use.
<!-- autogenerated options start - DO NOT EDIT - instead edit fs.RegInfo in backend/yandex/yandex.go and run make backenddocs to verify --> <!-- markdownlint-disable-line line-length -->
### Standard options