]> arthur.barton.de Git - bup.git/commit
cmd/ftp: Hide .dotfiles by default (-a shows them)
authorGabriel Filion <lelutin@gmail.com>
Tue, 27 Jul 2010 03:52:34 +0000 (23:52 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 27 Jul 2010 07:49:37 +0000 (03:49 -0400)
commitbfec086203ba7469b2a6b9cbceb4deecd5a8cfb3
treedb4dea1a60b56d0549b86dfbc1e14e96909f256d
parent9a31a8cbd58f67899d1a340da61b598a11550e6f
cmd/ftp: Hide .dotfiles by default (-a shows them)

Normally in FTP sites, files beginning with a dot are hidden from a list
(ls) command by default. Also, using the argument '-a' makes the list
show hidden files.

The current 'bup ftp' implementation does not behave so. Make it hide
hidden files by default, as expected, and show hidden files when '-a' or
'--all' is specified to the 'ls' command.

All unknown switches will make bup ftp show the ls command usage.

Users can also give 'ls --help' to obtain the usage string.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
cmd/ftp-cmd.py