isDir property

bool get isDir

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

Implementation

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