When you use the network disk, you must not be able to tolerate the speed limit download speed. Today I will share with you an open source network disk download project BaiduPCS-Go . Written in Go language, Baidu network disk command line client imitating Linux shell file processing commands. Multi-platform support, support Windows, macOS, linux, mobile devices, etc.
Project download address , select the corresponding download package according to your operating system, and the directory after downloading and decompressing is as follows:
The local default path of the downloaded file/directory is under the download folder. You can use the command to specify the local download path.
Because the use of command-line commands is described in detail in the README, I will only introduce a few main functions:
Log in
BaiduPCS-Go login
list directory
List files and directories in the current working directory or a specified directory
BaiduPCS-Go ls
BaiduPCS-Go ls <目录>
change working directory
BaiduPCS-Go cd <目录>
Download file/directory
BaiduPCS-Go download <网盘文件或目录的路径1> <文件或目录2> <文件或目录3> ...
BaiduPCS-Go d <网盘文件或目录的路径1> <文件或目录2> <文件或目录3> ...
optional parameter
-test: 测试下载, 此操作不会保存文件到本地
-status: 输出所有线程的工作状态
--save: 将下载的文件直接保存到当前工作目录
--saveto: 将下载的文件直接保存到指定的目录
-x: 为文件加上执行权限, (windows系统无效)
-p <num>: 指定下载的最大并发量
Just take a screenshot, the download speed is still quite powerful!
Upload file/directory
BaiduPCS-Go upload <本地文件/目录的路径1> <文件/目录2> <文件/目录3> ... <目标目录>
BaiduPCS-Go u <本地文件/目录的路径1> <文件/目录2> <文件/目录3> ... <目标目录>
Uploaded files will be saved to, <target directory> .
- If a file with the same name is encountered, it will be automatically overwritten!!
When the uploaded file name and the directory name of the network disk are the same, the directory will not be overwritten to prevent data loss.
List the directory after the upload is complete:
Isn't it great, conscience tool, hurry up and use it!