dir_entry_t Derived Type

type, public :: dir_entry_t

One entry of a directory listing.


Components

Type Visibility Attributes Name Initial
integer, public :: kind = ENTRY_OTHER

ENTRY_FILE, ENTRY_DIR or ENTRY_OTHER

character(len=:), public, allocatable :: name

the entry's name, without the directory


Source Code

type, public :: dir_entry_t
    !! One entry of a directory listing.
    character(len=:), allocatable :: name   !! the entry's name, without the directory
    integer :: kind = ENTRY_OTHER           !! `ENTRY_FILE`, `ENTRY_DIR` or `ENTRY_OTHER`
end type dir_entry_t