New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@masx200/baidupcs-batch-upload

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@masx200/baidupcs-batch-upload

使用baidupcs-go,百度网盘批量上传文件夹中的文件

  • 1.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

baidupcs-batch-upload

https://github.com/iikira/BaiduPCS-Go

使用 baidupcs-go,百度网盘批量上传文件,高并发支持

在上传超过几百个文件时,速度快得多

给上传操作限流,防止打开过多报错,默认最多同时运行 15 个上传进程,可传参更多并发上传数

如果遇到 几 种网络问题上传失败,则自动重试,比直接用 一个 BaiduPCS-Go 命令上传更快

解决了上传文件有小概率上传未成功,但baidupcs-go返回上传成功的问题,

解决思路:使用upload上传完文件之后,使用meta命令,检查文件是否存在于网盘中,然后重传失败的文件

目前适配的版本

BaiduPCS-Go version v3.6.2

BaiduPCS-Go-v3.6.2-windows-x64

下载网址

https://github.com/masx200/baidupcs-batch-upload/releases/download/1.1.5/BaiduPCS-Go-v3.6.2-windows-x64.zip

https://github.com/felixonmars/BaiduPCS-Go/releases/tag/v3.6.2

https://github.com/masx200/baidupcs-batch-upload/releases/download/1.1.8/BaiduPCS-Go.arm64.android-v3.6.2-devel.rar

使用方法

安装

npm i -g @masx200/baidupcs-batch-upload

或者

yarn global add @masx200/baidupcs-batch-upload

安装 node_modules

yarn install

编译脚本

yarn build

运行脚本

yarn start

使用之前先登陆

BaiduPCS-Go login

获取 bduss 的方法

http://tool.cccyun.cc/tool/bduss/index3.html

https://bduss.lingtings.com/index3.html

命令行示例

必选参数 input:类型string,输入本地文件目录

必选参数 dest:类型string,上传到的网盘文件目录

可选参数concurrent:类型number,同时并发的上传文件个数


npx @masx200/baidupcs-batch-upload  --input=D:/baidupandownload/图片输入本地 --dest=/baidupandownload/图片输出网盘
npx @masx200/baidupcs-batch-upload --input=D:/baidupandownload/图片输入本地 --dest=/baidupandownload/图片输出网盘 --concurrent=20

对于 windows 系统,

如果是带空格的本地目录/网盘目录场景,

可以使用如下命令:


baidupcs-batch-upload.cmd --input="d:\2 2" --dest="/test/t s" --concurrent=20

FAQs

Package last updated on 02 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc