existsSync method

bool existsSync()

Determines whether file exists on disk.

Implementation

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