exists method

Future<bool> exists()

Determines whether file exists on disk.

Implementation

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