@opengis/fastify-table
Version:
core-plugins
16 lines • 738 B
TypeScript
import fs from "node:fs";
export default function fsStorage(): {
deleteFile: (fp: string) => Promise<void>;
downloadFile: (fp: string, options?: Record<string, any>) => Promise<Buffer<ArrayBufferLike> | fs.ReadStream | {
original: string;
full: string | null;
} | null>;
uploadFile: (fp: string, data: any, opt?: {}) => Promise<string>;
fileExists: (filepath: any, opt?: any) => Promise<boolean>;
stat: (filepath: string) => Promise<fs.Stats>;
moveFile: (fp: string, destFilepath: string) => Promise<void>;
getFileSize: (filepath: any) => Promise<number>;
getMDate: (filepath: any) => Promise<Date>;
readdir: (filepath: any) => Promise<string[]>;
};
//# sourceMappingURL=fs.d.ts.map