Skip to content

Commit 7a9ca9e

Browse files
committed
issue#34: Fixed issue when running ls on the local machine
1 parent cb9a33f commit 7a9ca9e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cmd/list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ func runFind(dirPath string, client *ssh.Client) (string, error) {
189189

190190
err := filepath.Walk(dirPath, func(path string, info os.FileInfo, err error) error {
191191
if err == nil && !info.IsDir() && !strings.HasSuffix(info.Name(), ".state") && !strings.HasSuffix(info.Name(), ".srm") {
192-
fileName := strings.TrimSuffix(info.Name(), filepath.Ext(info.Name()))
193-
fileNames = append(fileNames, fileName)
192+
fileNames = append(fileNames, info.Name())
194193
}
195194
return nil
196195
})

0 commit comments

Comments
 (0)