filelib:fold_files/5 just list files, not directories. I can replace 
system `find` call with `get_all_files`, but it means that we'll lose a 
possibility to use `#{}` placeholders in template inner folders' names, 
or we need either to rewrite or to create a new version of 
`get_all_files` that take account of directories existance.

On 09/26/2013 11:08 AM, 0xAX wrote:
> In lib/mix/tasks/weber.ex:
>
>> -                        mod: {#{proj}, []}
>> -                    ]
>> +            baseName = basename directoryName
>> +
>> +            vars = HashDict.new [
>> +                {"path", path},
>> +                {"proj", String.capitalize(baseName)},
>> +                {"projectName", baseName}
>> +            ]
>> +
>> +            # TODO: do we need multiple app templates?
>> +            template = "default"
>> +            {:ok, pwd} = cwd
>> +            skelRoot = pwd <> "/templates/" <> template
>> +            cd skelRoot
>> +            skelFiles = String.split(System.cmd("find -P . -mindepth 1"), "\n", [])
>
> Here is the no need in |System.cmd|. Look at
> |Weber.Utils.get_all_files/1| -
> https://github.com/0xAX/weber/blob/master/lib/weber/utils.ex#L13
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/0xAX/weber/pull/32/files#r6594095>.
>

-- 
Regards.