Conversation
Add native Filen (filen.io) cloud storage driver based on the official filen-sdk-go. Features: - List/Get/Link/MakeDir/Move/Rename/Remove/Put/GetDetails - E2E encryption: downloads stream via RangeReader with client-side decryption, uploads are chunked (1 MiB) and encrypted - Auth: email + password, with optional API key; when the API key is empty the driver logs in automatically and persists the obtained key back to the storage config - Optional TOTP 2FA secret support for accounts with two-factor authentication enabled
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 摘要
新增 Filen(filen.io)网盘驱动,基于官方 filen-sdk-go 实现。
Filen 是一个端到端加密网盘(免费 10GB,邀请用户可额外获得30G),rclone 已原生支持且 SDK 已趋于稳定(rclone 的 filen 后端即基于此 SDK)。此网盘免费额度较慷慨,推荐接入,此前AList 仓库曾有相关需求 issue(AlistGo/alist#6726)(AlistGo/alist#7531),当时因官方API未开放无法实现。
功能:
Copy外(Filen.io API不支持)的文件操作:List/Get/Link/MakeDir/Move/Rename/Remove/Put/GetDetailsOnlyProxy/NoLinkURL:因文件内容加密存储,需要对端解密,无法提供直链,WebDAV 策略限制为本地代理/代理网址(与 Mega、ProtonDrive 行为一致)依赖说明:
go.mod新增filen-sdk-go v0.0.39(直接依赖)及 3 个 indirect 依赖。SDK 依赖 rclone 的fs包做错误定义,而 OpenList 已依赖 rclone ,无需新增。go.sum仅增量追加,既有条目无改动。Related repository PRs / 关联仓库 PR:
Related Issues / 关联 Issue
与Openlist无直接issue关联,与Alist中(AlistGo/alist#6726)(AlistGo/alist#7531)关联
Testing / 测试
go test ./...(filen 驱动编译、vet、测试通过;
go test输出中 189/123/chaoxing 等其他驱动的 non-constant format string 警告为 main 分支既有问题,与本 PR 无关)SDK 独立验证(测试程序直连 filen-sdk-go,真实账号):初始化(V2 认证)、用户信息、创建目录、上传(分块加密 + BLAKE3)、列目录、下载并逐字节比对、重命名、移动、删除(回收站)、清空回收站——全部通过。
OpenList 端到端验证(API 层):
fs/list/fs/mkdir/fs/get/fs/put/fs/rename/fs/move/fs/remove/api/fs/multipart/*)完整流程WebUI / 移动端验收:图片、音频、视频预览播放正常,上传下载功能正常,桌面端与手机端均验证通过。详见下方截图:







PC端(MacOS 26 Chrome149):
移动端:(Android14 Chrome137)
Checklist / 检查清单
gofmt,go fmt, orprettierwhere applicable. / 我已按适用情况使用gofmt、go fmt或prettier格式化变更代码。AI Disclosure / AI 使用声明
Tools used / 使用工具:
Usage scope / 使用范围:
Code generation / 代码生成
Documentation / 文档
Tests / 测试
I have reviewed and validated all AI-assisted content included in this PR. / 我已审核并验证此 PR 中的所有 AI 辅助内容。
I have ensured that all AI-assisted commits include
Co-Authored-Byattribution. / 我已确保所有 AI 辅助提交都包含Co-Authored-By归属信息。I can reproduce all AI-assisted content included in this PR without any AI tools. / 我可以在没有任何 AI 工具的情况下重现此 PR 中包含的所有 AI 辅助内容。