We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdeca4c commit 3dcaed6Copy full SHA for 3dcaed6
@xen-orchestra/fs/src/azure.js
@@ -248,8 +248,10 @@ export default class AzureHandler extends RemoteHandlerAbstract {
248
}
249
250
async _read(file, buffer, position = 0) {
251
+ if (typeof file !== 'string') {
252
+ file = file.fd
253
+ }
254
const blobClient = this.#containerClient.getBlobClient(file)
-
255
try {
256
const downloadResponse = await blobClient.download(position, buffer.length)
257
const bytesRead = await this.#streamToBuffer(downloadResponse.readableStreamBody, buffer)
0 commit comments