lib/pvl: pvl/list: fix list_tree to include directory itself
authorTero Marttila <tero.marttila@aalto.fi>
Mon, 02 Mar 2015 12:54:27 +0200
changeset 684 fbac5a08c9d3
parent 683 fcc67f492a02
child 685 668f934bb958
lib/pvl: pvl/list: fix list_tree to include directory itself
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' ''
 }
-