mirror of
https://github.com/xiaoqidun/gocos.git
synced 2025-12-07 00:15:21 +08:00
feat(调整参数): 源和目的输入参数后面添加_path
This commit is contained in:
8
gocos.go
8
gocos.go
@@ -20,8 +20,8 @@ const (
|
||||
SecretID = "secret_id"
|
||||
SecretKey = "secret_key"
|
||||
BucketURL = "bucket_url"
|
||||
Source = "source"
|
||||
Target = "target"
|
||||
SourcePath = "source_path"
|
||||
TargetPath = "target_path"
|
||||
StripPrefix = "strip_prefix"
|
||||
PathSeparator = "/"
|
||||
)
|
||||
@@ -65,8 +65,8 @@ func main() {
|
||||
secretID = GetConfig(SecretID)
|
||||
secretKey = GetConfig(SecretKey)
|
||||
bucketURL = GetConfig(BucketURL)
|
||||
source = GetConfig(Source)
|
||||
target = GetConfig(Target)
|
||||
source = GetConfig(SourcePath)
|
||||
target = GetConfig(TargetPath)
|
||||
stripPrefix = GetConfig(StripPrefix)
|
||||
)
|
||||
if StrIsEmpty(secretID, secretKey, bucketURL, source, target) {
|
||||
|
||||
Reference in New Issue
Block a user