gopass mv foo bar/
ignores the trailing slash if bar
directory doesn't exist yet
#3075
Labels
bug
Defects
Expected behavior
Let's say I want to move secret
foo
into a subdir so that it's located atbar/foo
instead.The following works:
The following also works if
bar
directory already exists:Actual behavior
If
bar
directory doesn't exist yet,foo
is moved to a file calledbar
even though we put a trailing slash:This happens on both the CLI and the REPL. Seems the trailing slash is just ignored.
Discussion
The behavior of
pass
is to always create the directory if there's a trailing slash. I feel like this would be better behavior forgopass
too, what do you think?The text was updated successfully, but these errors were encountered: