From 7fd441ec6c5b1523ae68d017c36e7dadf9aeaed1 Mon Sep 17 00:00:00 2001 From: ebozduman Date: Sun, 14 Nov 2021 21:21:00 -0800 Subject: [PATCH] Removes Windows path adjustment for prefixes (#3614) --- cmd/ls.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/ls.go b/cmd/ls.go index c5b7a036..266102ef 100644 --- a/cmd/ls.go +++ b/cmd/ls.go @@ -21,7 +21,6 @@ import ( "context" "fmt" "path/filepath" - "runtime" "sort" "strings" "time" @@ -91,12 +90,6 @@ func (c contentMessage) JSON() string { func getOSDependantKey(path string, isDir bool) string { sep := "/" - // for windows make sure to print in 'windows' specific style. - if runtime.GOOS == "windows" { - path = strings.Replace(path, "/", "\\", -1) - sep = "\\" - } - if isDir && !strings.HasSuffix(path, sep) { return fmt.Sprintf("%s%s", path, sep) }