-
-
Notifications
You must be signed in to change notification settings - Fork 8k
feat(cloudreve_v4): add Cloudreve V4 driver #8470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis pull request introduces a new driver for Cloudreve V4, integrating it into the existing system. It includes the implementation of various functionalities such as file listing, linking, directory creation, file movement, renaming, copying, removal, and uploading. Additionally, it handles authentication and token refresh processes. Changes
|
|
Cloudreve V4使用相同的api端点获取用户目录或分享链接的文件列表(分享链接: |
适配 Cloudreve V4,其API部分发生改动较大,特独立成一个存储。
Close: #8328
Close: #8467
此外,本 PR 还进行了:
Referenceinterface to driver #7805 引入的 ref 支持。文档:AlistGo/docs#433
参数说明
鉴权
Cloudreve V4 支持使用 Access Token 和 Refresh Token 进行鉴权,这意味着挂载鉴权方式分为:
ref:/{挂载路径}:从已挂载的存储中引用认证、令牌等,同一个 Token 多个网盘使用根文件夹路径
Cloudreve V4 采用自定义 URI 作为路径。可从网页链接的
?path=中获取。挂载「我的文件」
默认为
cloudreve://my/,列出用户文件。挂载「分享」
支持挂载文件夹类型的分享,路径填写为:
cloudreve://{分享ID}@share/。分享ID为分享链接
/s/后面的参数。目前 Cloudreve V4 不支持「创建带密码的分享」。
启用文件夹大小
Cloudreve V4 服务端统计每个文件夹的大小,启用可能会造成服务端报错,默认禁用。
启用缩略图
Cloudreve V4 服务端为每个文件生成略缩图,启用可能会造成服务端报错,默认禁用。
启用版本上传
启用覆盖上传并保留之前的版本,需要消耗额外的空间。默认禁用,为覆盖上传前删除已有的文件。
自定义 UA
用于自定义请求使用的
User-Agent头部信息。留空为 Alist 默认。排序
支持更改请求列表时排序的参数。
上传策略
支持上传到的存储策略如下:
上传的存储策略请在 Cloudreve V4 网页端进入相应文件夹中进行设置(需要服务端为 Cloudreve Pro)。
如果分享开启了上传权限,支持上传。需要服务端为用户组勾选「提升匿名用户权限」(需要服务端为 Cloudreve Pro)。