isDirectory property

bool isDirectory

Whether the file is a regular file. See type.

Implementation

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