Check if this collection includes a directory path.
bool includesDir(String dir) { return directories.any((d) => d.isWithin(dir, isDir: true)); }