path method

Future<String> path(
  1. String path
)

The absolute path of path on the device, for plugins that need a real file. Throws for disks with no files on the device, such as memory disks and the app bundle.

Implementation

Future<String> path(String path) => _run(path, () async {
  final String? absolute = await driver.absolutePath(_resolve(path));
  if (absolute == null) {
    throw DiskException('This disk has no files on the device', path: path);
  }
  return absolute;
});