isDirectory property

bool get isDirectory

Whether the file is a regular file. See type.

Implementation

bool get isDirectory => mode?.type == SftpFileType.directory;