Check if this collection includes a file path.
bool includesFile(String file) { return files.contains(file) || directories.any((d) => d.isWithin(file, isDir: false)); }