exists method

Future<bool> exists(
  1. String path
)

Checks if the directory exists.

Implementation

Future<bool> exists(String path) async =>
    await directoryExists(path.replaceSeparator());