Skip to content

Commit a45081d

Browse files
author
Josh Newman
committed
fix bug where beginning character was cut off in ls when ending with a "/" in the path
1 parent 0267108 commit a45081d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ls.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var lsCmd = &cobra.Command{
2525
}
2626

2727
func runLsCmd(cmd *cobra.Command, args []string) {
28-
path := args[0]
28+
path := fmt.Sprintf("/%s", stripSlash(args[0]))
2929

3030
recursive, _ := cmd.Flags().GetBool("recursive")
3131
decrypt, _ := cmd.Flags().GetBool("decrypt")

0 commit comments

Comments
 (0)