class FSWriter
implements Writer
import { FSWriter } from "https://deno.land/x/lume@v2.4.1/core/writer.ts";
Class to write the generated pages and static files in the dest folder.
Constructors
new
FSWriter(options: Options)Methods
clear()
Empty the dest folder
copyFile(file: StaticFile): Promise<boolean>
Copy a static file in the dest folder Returns a boolean indicating if the file has saved
copyFiles(files: StaticFile[]): Promise<StaticFile[]>
Copy the static files in the dest folder
removeFiles(files: string[])
Save a page in the dest folder Returns a boolean indicating if the page has saved