Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/justaos_utils/packages/file-utils/src/FileUtils.ts>default

Common utility functions used across projects
Latest
class default
import { default } from "https://deno.land/x/justaos_utils@v2.0.0/packages/file-utils/src/FileUtils.ts";

Static Methods

copy(sourcePath: string, destinationPath: string): Promise<void>
copySync(
sourcePath: string,
destinationPath: string,
options?: any,
): void
exists(filePath: string): Promise<boolean>
existsSync(filePath: string): boolean
mkdirSync(filePath: string, options?: MkdirOptions): void
readFile(filePath: string): Uint8Array
readFileSync(filePath: string): Uint8Array
readJsonFilesFromPathSync(filePath: string): any[]
readJsonFileSync(filePath: string): any
readTextFile(filePath: string): Promise<string>
readTextFileSync(filePath: string): string
remove(path: string, options?: RemoveOptions): Promise<void>
removeSync(path: string, options?: RemoveOptions): void
unZip(zipSourcePath: string, destinationPath: string): Promise<boolean>
unZipFromURL(downloadUrl: URL, destinationPath: string)
writeJsonFileSync(filePath: string, object: any): void
writeTextFileSync(filePath: string, content: string): void