class FileHandler
implements IFileHandler
import { FileHandler } from "https://deno.land/x/smx@v0.6.0/src/modules/infra/file-handler.ts";
Methods
private
getPathPair(path: string, type: "file" | "folder"): [string, string]readJsonFile<T>(defaultValue: T): Promise<T>
readTextFile(defaultValue?): Promise<string>
writeJsonFile<T>(content: T): Promise<boolean>
writeTextFile(content: string): Promise<boolean>
Static Properties
create: (path: string) => IFileHandler