2024-08-28 19:57:20 +08:00

12 lines
235 B
TypeScript

import { implInterface } from "../interface";
import { stat, readFile } from "fs/promises";
implInterface({
async stat(path) {
const r = await stat(path);
return r;
},
readFile(path) {
return readFile(path);
},
});