funf删除上传后的归档文件 [英] funf delete archive files after upload

查看:175
本文介绍了funf删除上传后的归档文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能得到v0.4.2版本funf工作安排和上传文件。文件被上传后的数据备份到备份文件夹中。是否funf提供任何选项来限制文件的数量是备份/删除旧文件等?

I was able to get v0.4.2 funf version working to schedule and upload files. After the files are upload data is backed up into "backup" folder. Does funf offer any options to limit the number of files to be backup/ delete old files etc?

感谢

推荐答案

DefaultArchive (我假设你正在使用)解释的这里如下:

The behaviour of the DefaultArchive (which I assume you are using) is explained here as follows:

备份文件夹偶尔清理删除旧文件。
  备份文件保存,只要它们不是免费的侵权
  盘的空间。默认存档将保持至少10MB的
  备份,以及最大等于自由空间的50%可在
  驾驶。例如,如果有可用的空闲空间200MB
  SD卡,然后存档将备份存储多达100MB。

The backup folder is occasionally cleaned up to delete older files. Backup files are kept as long as they are not infringing on the free space of the disk. The default archive will keep a minimum of 10MB of backup, and a maximum equal to 50% of the free space available on the drive. For instance if there is 200MB of free space available on the SD Card, then the archive will store a backup of up to 100MB.

当然,你可以随时根据自己的需要通过实现你自己的存档修改此。

Of course, you can always modify this according to your needs by implementing your own archive.

另外,你可以如安排使用 AlarmManager 重复任务时,在其中你可以清理备份 - 定期使用标准的Java文件操作的文件夹(有一个 #getPathOnSDCard() -method在DefaultArchive对象)。另一种可能性是例如一次后手动执行此操作轻敲删除备份按钮上。

Alternatively, you could e.g. schedule a repeating task using the AlarmManager, in which you could clean up the backup-folder periodically using standard Java file-operations (there's a #getPathOnSDCard()-method in the DefaultArchive-object). Another possibility is to do this once manually after e.g. tapping a "delete backup"-button.

这篇关于funf删除上传后的归档文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆