Comments (4)
开发者您好,我想咨询一下,该程序挂载百度盘后,从挂载路径拷贝文件,缓存会存在那个路径下呢?有没有自动清除缓存的机制?比如设定只允许缓存占用空间为2G,超出后会自动清理已下载不用的缓存?
默认会放到 /tmp/.bdfs/.data 目录, /tmp 属于内存文件系统,理论上重启后自动删除, 缓存目录可以在 model/enum.py 里面配
from bdfs.
好的,感谢您的回复。
查找相关资料发现不同的linux发行版对/tmp目录的清除策略稍有差异,最后我是通过设定tmpwatch
来实现自动清除一段时间内没访问的文件的:
tmpwatch 24 /tmp/ #清除24小时内未访问的文件,配合crontab执行
还有一个问题想咨询一下,现在部署后发现速度不是很快,svip账户下载几十兆的小文件,速度在100-300kb左右,您那边使用是这个速度吗?有么有可能引入aria2作为下载工具提升下载速度呢?
from bdfs.
嗯,我这边使用速度也挺慢的,这个项目在考虑用其它语言重写优化,目前不会做变动。
from bdfs.
好的,期待新的项目哈,感谢您写的这个项目,至少的linux端解决了无法挂载百度盘的噩梦。
from bdfs.
Related Issues (2)
- 创建文件时候出错 HOT 3
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 bdfs.