amber/deno/dir_entry
Types
Information about a directory entry returned from
deno.read_dir_sync
.
pub type DirEntry {
DirEntry(
name: String,
is_file: Bool,
is_directory: Bool,
is_symlink: Bool,
)
}
Constructors
-
DirEntry( name: String, is_file: Bool, is_directory: Bool, is_symlink: Bool, )
Arguments
-
name
The file name of the entry. It is just the entity name and does not include the full path.
-
is_file
True if this is info for a regular file. Mutually exclusive to
DirEntry.is_directory
andDirEntry.is_symlink
. -
is_directory
True if this is info for a regular directory. Mutually exclusive to
DirEntry.is_file
andDirEntry.is_symlink
. -
is_symlink
True if this is info for a symlink. Mutually exclusive to
DirEntry.is_file
andDirEntry.is_directory
.
-