List a subdirectories in a directory?

Richard O'Keefe raoknz@REDACTED
Tue Aug 10 04:22:35 CEST 2021


Given a directory and a file name, put them together.
Then use file:read_file_info/[1,2] to find out whether that names a directory.

On Tue, 10 Aug 2021 at 13:13, Lloyd R. prentice <lloyd@REDACTED> wrote:
>
> Hello,
>
> .file:list_dir/1 lists all files in a directory. But I need to list all sub-directories.
>
> One would think that this would be a routine function., but my aging eyes fail to find any way to do this.
>
> Can someone please show me the path forward?
>
> Many thanks,
>
> LRP
>
>


More information about the erlang-questions mailing list