objectMetadata function
The metadata of the object at path, without downloading it.
Implementation
Future<StorageMetadata> objectMetadata(String path) async {
final p = path.toNativeUtf8();
try {
final payload = await _awaitBuffer(
(port) => fdbStorageMetadata(p.cast(), port),
'metadata $path',
);
return _decodeMetadata(payload);
} finally {
calloc.free(p);
}
}