exists method

Future<bool> exists()

Determines whether file exists on disk.

Implementation

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