isDirSync method

bool isDirSync()

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

Implementation

bool isDirSync() => Env.isWindows
    ? WindowsPath(_string).isDirSync()
    : UnixPath(_string).isDirSync();