Versions in this module Expand all Collapse all v1 v1.0.3 May 3, 2020 v1.0.2 May 2, 2020 Changes in this version + const DefaultUploadMaxRetry + var DefaultRunner = Runner + var ErrShellPatternMultiRes = errors.New("多条通配符匹配结果") + var ErrShellPatternNoHit = errors.New("未匹配到路径, 请检测通配符") + func GetActiveUser() *pcsconfig.Baidu + func GetBaiduPCS() *baidupcs.BaiduPCS + func GetExportFilename() string + func RunChangeDirectory(targetPath string, isList bool) + func RunCloudDlAddTask(sourceURLs []string, savePath string) + func RunCloudDlCancelTask(taskIDs []int64) + func RunCloudDlClearTask() + func RunCloudDlDeleteTask(taskIDs []int64) + func RunCloudDlListTask() + func RunCloudDlQueryTask(taskIDs []int64) + func RunCopy(paths ...string) + func RunCreateSuperFile(targetPath string, blockList ...string) + func RunDownload(paths []string, options *DownloadOptions) + func RunExport(pcspaths []string, opt *ExportOptions) + func RunFixMD5(pcspaths ...string) + func RunGetMeta(targetPaths ...string) + func RunGetQuota() + func RunLocateDownload(pcspaths []string, opt *LocateDownloadOption) + func RunLogin(username, password string) (bduss, ptoken, stoken string, err error) + func RunLs(pcspath string, lsOptions *LsOptions, orderOptions *baidupcs.OrderOptions) + func RunMkdir(path string) + func RunMove(paths ...string) + func RunRapidUpload(targetPath, contentMD5, sliceMD5, crc32 string, length int64) + func RunRecycleClear() + func RunRecycleDelete(fidStrList ...string) + func RunRecycleList(page int) + func RunRecycleRestore(fidStrList ...string) + func RunRemove(paths ...string) + func RunSearch(targetPath, keyword string, opt *SearchOptions) + func RunShareCancel(shareIDs []int64) + func RunShareList(page int) + func RunShareSet(paths []string, option *baidupcs.ShareOption) + func RunTestShellPattern(pattern string) + func RunTree(path string) + func RunUpload(localPaths []string, savePath string, opt *UploadOptions) + type DownloadOptions struct + DownloadMode pcsdownload.DownloadMode + IsExecutedPermission bool + IsOverwrite bool + IsPrintStatus bool + IsTest bool + Load int + MaxRetry int + NoCheck bool + Parallel int + SaveTo string + type ExportOptions struct + MaxRetry int + Recursive bool + RootPath string + SavePath string + type ListTask struct + ID int + MaxRetry int + type LocateDownloadOption struct + FromPan bool + type LsOptions struct + Total bool + type Runner struct + IsBackground bool + Output io.Writer + type SearchOptions struct + Recurse bool + Total bool + type UploadOptions struct + MaxRetry int + NoRapidUpload bool + NoSplitFile bool + Parallel int