Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: client/internal/common/utils.go

Issue 2941963002: Remove batcharchive dependency on common.IsDirectory (Closed)
Patch Set: Remove unused import Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/cmd/isolate/batch_archive.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/internal/common/utils.go
diff --git a/client/internal/common/utils.go b/client/internal/common/utils.go
index 9bd61b07d593c1b073578443b83b0d0c2a747636..718cd5bfd41a5cfcae9a7dc5a82d39c156e9412f 100644
--- a/client/internal/common/utils.go
+++ b/client/internal/common/utils.go
@@ -12,12 +12,6 @@ import (
"github.com/luci/luci-go/common/system/terminal"
)
-// IsDirectory returns true if path is a directory and is accessible.
-func IsDirectory(path string) bool {
- fileInfo, err := os.Stat(path)
- return err == nil && fileInfo.IsDir()
-}
-
// IsWindows returns True when running on the best OS there is.
func IsWindows() bool {
return runtime.GOOS == "windows"
« no previous file with comments | « client/cmd/isolate/batch_archive.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698