alist icon indicating copy to clipboard operation
alist copied to clipboard

命令行模式复制和移动文件

Open jianboy opened this issue 1 year ago • 2 comments

Please make sure of the following things

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

Description of the feature / 需求描述

希望增加命令行功能,实现文件的复制和移动过,如下:

./alist cp /b/a.txt /a/b.txt
./alist mv /b/a.txt /b/a.txt

Suggested solution / 实现思路

No response

Additional context / 附件

No response

jianboy avatar Sep 10 '24 06:09 jianboy

What about webdav?

  1. Enable web dav permission by accessing /@manage/users/edit/1
  2. Mount the alist with dav(ubuntu for example)
sudo apt install davfs2
sudo mount -t davfs http://127.0.0.1:5244/dav/ /mnt

jindongh avatar Sep 10 '24 06:09 jindongh

rclone也可以实现复制和移动 用相同的webdav配置就行

pongfcnkl avatar Sep 10 '24 08:09 pongfcnkl

可以参考这个go项目 https://github.com/qjfoidnh/BaiduPCS-Go

下载文件: ./alist download /网盘/c/d /home/xx/aa

上传文件:./alist upload /home/xx/aa /网盘/c/d

移动: ./alist mv /网盘1/c/d /网盘2/c/d

删除: ./alist rm /网盘2/c/d

jianboy avatar Nov 26 '24 08:11 jianboy

rclone就能实现 下载 rclone copy alist:源路径 alist:目标路径 参数... 上传 rclone copy alist:源路径 alist:本机路径 参数... 移动 同盘直接move,跨盘的话和上面一样不过得先copy在move 删除 delete

pongfcnkl avatar Nov 26 '24 08:11 pongfcnkl