isDir property

bool isDir

True if the expression matches a dir (ends with '/').

Implementation

bool get isDir => expression.endsWith(posix.separator);