More Deno 1.40 fixes
parent
75328edbd3
commit
59eed7966d
|
@ -85,11 +85,11 @@ export class DiskSpacePrimitives implements SpacePrimitives {
|
|||
});
|
||||
|
||||
// Actually write the file
|
||||
await Deno.write(file.rid, data);
|
||||
await file.write(data);
|
||||
|
||||
if (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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue