{"id":28711705,"url":"https://github.com/linkleong/go-aliyundrive-webdav","last_synced_at":"2025-10-05T03:46:50.360Z","repository":{"id":37428700,"uuid":"403284653","full_name":"LinkLeong/go-aliyundrive-webdav","owner":"LinkLeong","description":"阿里云盘(https://www.aliyundrive.com/) 的webdav协议开源实现","archived":false,"fork":false,"pushed_at":"2025-06-07T01:08:34.000Z","size":7048,"stargazers_count":445,"open_issues_count":19,"forks_count":92,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-14T22:11:23.925Z","etag":null,"topics":["aliyundrive","webdav"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinkLeong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-09-05T10:58:49.000Z","updated_at":"2025-06-07T01:08:37.000Z","dependencies_parsed_at":"2025-06-14T22:10:23.264Z","dependency_job_id":"b7359332-d6a7-4a7d-ac71-05f42070dd8d","html_url":"https://github.com/LinkLeong/go-aliyundrive-webdav","commit_stats":null,"previous_names":["linkleong/go-aliyun-webdav"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/LinkLeong/go-aliyundrive-webdav","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkLeong%2Fgo-aliyundrive-webdav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkLeong%2Fgo-aliyundrive-webdav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkLeong%2Fgo-aliyundrive-webdav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkLeong%2Fgo-aliyundrive-webdav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinkLeong","download_url":"https://codeload.github.com/LinkLeong/go-aliyundrive-webdav/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinkLeong%2Fgo-aliyundrive-webdav/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278405251,"owners_count":25981487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliyundrive","webdav"],"created_at":"2025-06-14T22:10:16.318Z","updated_at":"2025-10-05T03:46:50.128Z","avatar_url":"https://github.com/LinkLeong.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 介绍\n本项目实现了阿里云盘的webdav协议，只需要简单的配置一下，就可以让阿里云盘变身为webdav协议的文件服务器。\n基于此，你可以把阿里云盘挂载为Windows、Linux、Mac系统的磁盘，可以通过NAS系统做文件管理或文件同步，更多玩法等你挖掘\n\n\n# 如何使用\n支持refreshToken登录方式，具体看参数说明\n## 运行\n[点击下载](https://github.com/LinkLeong/go-aliyun-webdav)\n\u003e 选择对应的版本进行下载,进入到解压目录执行\n```bash\n./webdav -rt=\"your refreshToken\"\n# 或者\necho \"your refreshToken\" \u003e /path/to/save/refreshToken\n./webdav -rt /path/to/save/refreshToken\n```\n\n# 参数说明\n```bash\n-rt\n    阿里云盘的refreshToken，获取方式见下文。或者包含refreshToken的文件路径。\n-port\n    非必填，服务器端口号，默认为8085\n-user\n    WebDav账户，默认admin\n-pwd\n    WebDav密码，默认123456\n-v\n    是否显示日志，默认不显示\n-V\n    查看版本号\n-crt\n    检查refreshToken是否过期\n    \n    \n```\n\n# 客户端兼容性\n| 客户端 | 下载 | 上传 | 备注 |\n| :-----| ----: | :----: | :----: |\n| 群辉Cloud Sync | 可用 | 可用 | 单向同步非常稳定 |\n| Rclone | 可用 | 可用 | 推荐，支持各个系统 |\n| Mac原生 | 可用 | 可用 | 适配有问题，不建议使用 | \n| Windows原生 | 可用 | 有点小问题 | 不建议，适配有点问题，上传报错 |\n| RaiDrive | 可用 | 可用 | Windows平台下建议用这个 |\n\n# openwrt ui\n[项目路径](https://github.com/jerrykuku/luci-app-go-aliyundrive-webdav)\n\n# telegram群\n[我要加入](https://t.me/+ExaQpIuwGzpjOWM1)\n\n# 浏览器获取refreshToken方式\n1. 先通过浏览器（建议chrome）打开阿里云盘官网并登录：https://www.aliyundrive.com/drive/\n2. 登录成功后，按F12打开开发者工具，点击Application，点击Local Storage，点击 Local Storage下的 [https://www.aliyundrive.com/](https://www.aliyundrive.com/)，点击右边的token，此时可以看到里面的数据，其中就有refresh_token，把其值复制出来即可。（格式为小写字母和数字，不要复制双引号。例子：ca6bf2175d73as2188efg81f87e55f11）\n3. 第二步有点繁琐，大家结合下面的截图就看懂了\n ![image](https://user-images.githubusercontent.com/32785355/119246278-e6760880-bbb2-11eb-877c-aca16cf75d89.png)\n\n# 功能说明\n## 支持的功能\n1. 查看文件夹、查看文件\n2. 文件移动目录\n3. 文件重命名\n4. 文件下载\n5. 文件删除\n6. 文件上传\n7. 支持WebDav权限校验（默认账户密码：admin/123456）\n8. 文件在线编辑\n9.  Webdav下的流媒体播放等功能\n## 已知问题\n\n1. 没有做文件sha1校验，不保证上传文件的100%准确性（一般场景下，是没问题的）\n2. 通过文件名和文件大小判断是否重复。也就是说如果一个文件即使发生了更新，但其大小没有任何改变，是不会自动上传的\n3. 不支持文件名包含 `/` 字符 \n4. 部分客户端兼容性不好 \n5. 单列表最大文件数为200\n\n\n# 免责声明\n1. 本软件为免费开源项目，无任何形式的盈利行为。\n2. 本软件服务于阿里云盘，旨在让阿里云盘功能更强大。如有侵权，请与我联系，会及时处理。\n3. 本软件皆调用官方接口实现，无任何“Hack”行为，无破坏官方接口行为。\n5. 本软件仅做流量转发，不拦截、存储、篡改任何用户数据。\n6. 严禁使用本软件进行盈利、损坏官方、散落任何违法信息等行为。\n7. 本软件不作任何稳定性的承诺，如因使用本软件导致的文件丢失、文件破坏等意外情况，均与本软件无关。\n\n---\n\n![](https://edgeone.ai/media/34fe3a45-492d-4ea4-ae5d-ea1087ca7b4b.png)\n[CDN acceleration and security protection for this project are sponsored by Tencent EdgeOne.](https://edgeone.ai/?from=github)\n\n---\n\n[![Powered by DartNode](https://dartnode.com/branding/DN-Open-Source-sm.png)](https://dartnode.com \"Powered by DartNode - Free VPS for Open Source\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkleong%2Fgo-aliyundrive-webdav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkleong%2Fgo-aliyundrive-webdav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkleong%2Fgo-aliyundrive-webdav/lists"}