Comments (4)
感谢反馈
应该问题不大,这种遍历的方式下载模拟的是单次下载的方式,理论上应该是比较安全的。
压缩的方式,因为阿里的接口经常会改,现在不太想做,等阿里正式版发布了,接口稳定之后再考虑做了。
from aliyunpan.
感谢回复,目前有一个新问题
下载的时候,会首先遍历所有文件、文件夹,但是遍历经常不全。同时,有的时候运行 ls 命令也无法展示文件夹内的条目而返回空地址(我觉得两者是一回事),所以这样遍历的时候可能把某个非空文件夹返回空的,这样就失去了这个节点的所有子节点。
我目前自己想的解决方案是,重复进行几次下载,因为我理解文件夹的“空访问”是有概率的,多次重复返回空的概率很低,但是还是觉得心里没底。一个优化的建议是,如果遇到了空文件夹,可以多次尝试一下,或等待几秒延迟访问,或遇到空文件夹则重复访问三次。最终,输出“所有空文件夹路径”到console
from aliyunpan.
确实有空文件的情况,网页app打开的时候也有这个情况,会让重试
之前我用另一套webdav 挂载rclone 来同步,随机清空文件夹然后又重新下载
from aliyunpan.
感谢回复,目前有一个新问题
下载的时候,会首先遍历所有文件、文件夹,但是遍历经常不全。同时,有的时候运行 ls 命令也无法展示文件夹内的条目而返回空地址(我觉得两者是一回事),所以这样遍历的时候可能把某个非空文件夹返回空的,这样就失去了这个节点的所有子节点。
我目前自己想的解决方案是,重复进行几次下载,因为我理解文件夹的“空访问”是有概率的,多次重复返回空的概率很低,但是还是觉得心里没底。一个优化的建议是,如果遇到了空文件夹,可以多次尝试一下,或等待几秒延迟访问,或遇到空文件夹则重复访问三次。最终,输出“所有空文件夹路径”到console
这个应该是阿里接口访问限流导致,太频繁调接口会限流,网页上频繁刷新页面也会遇到。这个只能增加延迟和重试避免触发限流
from aliyunpan.
Related Issues (20)
- panic: runtime error: index out of range [0] with length 0
- 支持Scoop安装
- 可否编译loongarch版本? HOT 2
- 官方版本更新,导致命令行版本无法使用 HOT 3
- 双向同步,在哪里可以看到同步的进度
- 新版已区分为资源盘+备份盘 HOT 3
- 给你一个吻
- 其他嵌入式平台无法运行 HOT 1
- 阿里云盘下载文件CPU经常飙100%
- 明明已经下载完成了,还是有.aliyunpan-downloading文件! HOT 1
- 下载速度骤降80%~90%,是阿里云那边限速吗 HOT 2
- ls 命令报错 invalid character 'S' looking for beginning of value HOT 1
- 这两天是不是阿里云限速了 HOT 9
- 相册希望能够导出,真的很有需求。望优先安排。 HOT 1
- 占用异常cpu HOT 1
- v0.2.7 Ubuntu22.04 同步备份功能只创建文件夹不上传文件 HOT 1
- 怎么修改Ubuntu中的下载路径 HOT 1
- 优化一下 HOT 9
- 为什么要移除locate 命令? HOT 1
- 重试问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aliyunpan.