isDir method

Future<bool> isDir()

Returns true if the path exists on disk and is pointing at a directory. Does not follow links.

Implementation

Future<bool> isDir() =>
    Env.isWindows ? WindowsPath(_string).isDir() : UnixPath(_string).isDir();