]> arthur.barton.de Git - bup.git/commit
ftp: honour pwd for ls
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 28 Jul 2020 20:38:01 +0000 (22:38 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sun, 18 Apr 2021 18:19:04 +0000 (13:19 -0500)
commit61a65f644ea0e065348337bb8bb50d7493d0f747
tree908dc9ad8675640ad67e7f66c15b9a7392ba591a
parentdd79ffb82efc57f8c403aa66ba6314afb07c0971
ftp: honour pwd for ls

Honour the current working directory for 'ls' by changing
ls.within_repo() to get the pwd, and using posixpath to
build the correct path to do the ls for.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/cmd/ftp.py
lib/bup/ls.py