From 486f7477f300207ee36b3d2276185b88f4c04dbd Mon Sep 17 00:00:00 2001 From: Illyoung Choi Date: Tue, 26 Mar 2024 12:35:49 -0700 Subject: [PATCH] Use normal parallel upload and download when redirect-to-resource fails --- commons/commands.go | 6 +++--- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/commons/commands.go b/commons/commands.go index 1c1423d..8c7d807 100644 --- a/commons/commands.go +++ b/commons/commands.go @@ -362,8 +362,8 @@ func ReinputFields() (bool, error) { return updated, nil } -func isICommandsEnvDir(filePath string) bool { - st, err := os.Stat(filePath) +func isICommandsEnvDir(dirPath string) bool { + st, err := os.Stat(dirPath) if err != nil { return false } @@ -372,7 +372,7 @@ func isICommandsEnvDir(filePath string) bool { return false } - entries, err := os.ReadDir(filePath) + entries, err := os.ReadDir(dirPath) if err != nil { return false } diff --git a/go.mod b/go.mod index e3d5c50..d0e9d6a 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/creativeprojects/go-selfupdate v1.0.1 - github.com/cyverse/go-irodsclient v0.14.1 + github.com/cyverse/go-irodsclient v0.14.2 github.com/dustin/go-humanize v1.0.1 github.com/gliderlabs/ssh v0.3.5 github.com/jedib0t/go-pretty/v6 v6.3.1 diff --git a/go.sum b/go.sum index 171db9d..3a13aa3 100644 --- a/go.sum +++ b/go.sum @@ -9,8 +9,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creativeprojects/go-selfupdate v1.0.1 h1:5Un4MTv4puCR5GBgkDLC14J72fljGuMC60E63cFGq1o= github.com/creativeprojects/go-selfupdate v1.0.1/go.mod h1:nm7AWUJfrfYt/SB97NAcMhR0KEpPqlrVHXkWFti+ezw= -github.com/cyverse/go-irodsclient v0.14.1 h1:8PixUAs4Q/A0k1vM8cMoCd6EOyMESfkMVGseVjmNMDg= -github.com/cyverse/go-irodsclient v0.14.1/go.mod h1:eBXha3cwfrM0p1ijYVqsrLJQHpRwTfpA4c5dKCQsQFc= +github.com/cyverse/go-irodsclient v0.14.2 h1:qC04xJN91J6PHrAm2iwhv9dLHNhs5IOcksmxmOwnKOc= +github.com/cyverse/go-irodsclient v0.14.2/go.mod h1:eBXha3cwfrM0p1ijYVqsrLJQHpRwTfpA4c5dKCQsQFc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=