updateDiskResourceInfo method
Update the meta information of the file or the folder.
Implementation
Future<Resource> updateDiskResourceInfo({
required final String path,
final String? fields,
final Map? customProperties,
}) async {
final response = await _dio.patch(
_diskResources,
queryParameters: {
'path': path,
if (fields != null) 'fields': fields,
},
data: ResourcePatch(customProperties: customProperties),
);
if (_HttpStatus.accepted == response.statusCode) {
final operationId = Link.fromJson(response.data).extractOperationId();
await _wait(operationId);
}
return Resource.fromJson(response.data);
}