subdirectories are files of type directory.
"regular files" are files of type regular file.
you can filter for regular-files if you want.
: directory-regular-files ( -- files )
directory-entries [ regular-file? ] filter [ name>> ] map ;
Most languages do this, for example python in its ``os.listdir`` function.
On Fri, Sep 18, 2015 at 10:04 AM, Alexander Ilin <[email protected]> wrote:
> Hello!
>
> Why does directory-files returns the names of subdirectories. Shouldn't
> it return file names only?
>
> ---=====---
> Александр
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk