Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

离线下载结束,移动文件时使用move而不是copy #6459

Open
4 tasks done
permheaddamage opened this issue May 15, 2024 · 2 comments
Open
4 tasks done

离线下载结束,移动文件时使用move而不是copy #6459

permheaddamage opened this issue May 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@permheaddamage
Copy link

permheaddamage commented May 15, 2024

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

我把移动硬盘挂载在了/mnt/sda1,并且创建了一个alist本地存储/ssd指向这个目录。
同时我把temp_dir定在了/mnt/sda1/incomplete。
在/ssd中添加离线下载,完成后,几十G的文件,alist是花费巨量时间把文件复制过去。
其实一个移动就可以了。

Suggested solution / 实现思路

此处是否应该检查目标文件系统是否跟temp_dir在同一个分区,是的话就直接move
https://github.com/alist-org/alist/blob/78a9676c7cdd282b68f27acdd2a095df427aa228/internal/offline_download/tool/transfer.go#L52C12-L52C15

Additional context / 附件

No response

@permheaddamage permheaddamage added the enhancement New feature or request label May 15, 2024
Copy link

welcome bot commented May 15, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

@pongfcnkl
Copy link

不保种吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants