diff --git a/common/spaces/disk_space_primitives.ts b/common/spaces/disk_space_primitives.ts index ec46ae6f..72ecebbd 100644 --- a/common/spaces/disk_space_primitives.ts +++ b/common/spaces/disk_space_primitives.ts @@ -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();