More Deno 1.40 fixes

pull/674/head
Zef Hemel 2024-01-28 14:37:54 +01:00
parent 75328edbd3
commit 59eed7966d
1 changed files with 2 additions and 2 deletions

View File

@ -85,11 +85,11 @@ export class DiskSpacePrimitives implements SpacePrimitives {
}); });
// Actually write the file // Actually write the file
await Deno.write(file.rid, data); await file.write(data);
if (meta?.lastModified) { if (meta?.lastModified) {
// console.log("Seting mtime to", new Date(meta.lastModified)); // console.log("Seting mtime to", new Date(meta.lastModified));
await Deno.futime(file.rid, new Date(), new Date(meta.lastModified)); await file.utime(new Date(), new Date(meta.lastModified));
} }
file.close(); file.close();