We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5798c03 + 322c91a commit b7cb4b7Copy full SHA for b7cb4b7
1 file changed
inst/www/js/dv_listings.js
@@ -419,11 +419,11 @@ const dv_fsa = (function() {
419
combined_contents.set(new Uint8Array(buffer), file_contents.length);
420
421
const temp_file_name = entry.fname + "_" + crypto.randomUUID() + ".tmp"
422
- const temp_handle = await g_directory.handle.getFileHandle(temp_file_name, {create: true});
+ const temp_handle = await dir_handle.getFileHandle(temp_file_name, {create: true});
423
const writable = await temp_handle.createWritable();
424
await writable.write(combined_contents);
425
await writable.close();
426
- await temp_handle.move(entry.fname);
+ await temp_handle.move(dir_handle, entry.fname);
427
428
entry.error = null;
429
} catch (error) {
0 commit comments