materialize method

Future<MaterializedFile> materialize(
  1. String path, {
  2. bool decrypt = true,
  3. bool exclusive = false,
})

Materialize a stored object as a platform-local handle.

See StorageBackend.materialize for the full behavior matrix across backends.

Implementation

Future<MaterializedFile> materialize(
  String path, {
  bool decrypt = true,
  bool exclusive = false,
}) {
  validateKey(path);
  return _backend.materialize(
    key(path),
    decrypt: decrypt,
    exclusive: exclusive,
  );
}