On Thu, Oct 29, 2015 at 11:41 AM, Charles Novaes de Santana
<
charles...@gmail.com> wrote:
> Thanks! stat is great!! :)
>
> My R-biased programming can solve the problem by using the following code:
>
> minsize=100
> folder=".";
> files =
> filter!(r"\.txt$",readdir(folder))[map(filesize,filter!(r"\.txt$",readdir(folder))).>minsize]
I don't think `readdir` necessarily garentee returning the files in
the same order every time you call it on all platforms. The simplest
improvement is just to call filter twice but you could also just do
```
filter!(fname->(endswith(fname, ".txt") && filesize(fname) > minsize),
readdir(folder))
```
Note that you don't need a regular expression for endswith...