# HG changeset patch # User Tero Marttila # Date 1425293667 -7200 # Node ID fbac5a08c9d38de6cb4aeadd5f6231812b2baa51 # Parent fcc67f492a028153ea2aa049f1fb7769be60be6e lib/pvl: pvl/list: fix list_tree to include directory itself diff -r fcc67f492a02 -r fbac5a08c9d3 lib/pvl/list.sh --- a/lib/pvl/list.sh Mon Mar 02 01:36:41 2015 +0200 +++ b/lib/pvl/list.sh Mon Mar 02 12:54:27 2015 +0200 @@ -31,8 +31,7 @@ _list "$1/*" '-d' ${2:-$1/} } -## List names of any files underneath dir or file: +## Expand a file or directory path to any files/directorys within that tree function list_tree { - _list "$1 $1/**" '-f' '' + _list "$1 $1/**" '-e' '' } -