alist
alist copied to clipboard
命令行模式复制和移动文件
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
What about webdav?
- Enable web dav permission by accessing /@manage/users/edit/1
- Mount the alist with dav(ubuntu for example)
sudo apt install davfs2
sudo mount -t davfs http://127.0.0.1:5244/dav/ /mnt
rclone也可以实现复制和移动 用相同的webdav配置就行
可以参考这个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
rclone就能实现 下载 rclone copy alist:源路径 alist:目标路径 参数... 上传 rclone copy alist:源路径 alist:本机路径 参数... 移动 同盘直接move,跨盘的话和上面一样不过得先copy在move 删除 delete