size method

Future<int> size(
  1. String path
)

The size of the file at path, in bytes.

Implementation

Future<int> size(String path) => _run(path, () async {
  final DiskEntry entry = await _file(path);
  return entry.size ?? (await driver.read(_resolve(path))).length;
});