Returns true if the path exists on disk and is pointing at a directory. Does not follow links.
Future<bool> isDir() => isWindows ? WindowsPath(_string).isDir() : UnixPath(_string).isDir();