changeset 684 | fbac5a08c9d3 |
parent 628 | b10ad946d01d |
683:fcc67f492a02 | 684:fbac5a08c9d3 |
---|---|
29 ## List names of dirs in dir: |
29 ## List names of dirs in dir: |
30 function list_dirs { |
30 function list_dirs { |
31 _list "$1/*" '-d' ${2:-$1/} |
31 _list "$1/*" '-d' ${2:-$1/} |
32 } |
32 } |
33 |
33 |
34 ## List names of any files underneath dir or file: |
34 ## Expand a file or directory path to any files/directorys within that tree |
35 function list_tree { |
35 function list_tree { |
36 _list "$1 $1/**" '-f' '' |
36 _list "$1 $1/**" '-e' '' |
37 } |
37 } |
38 |