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

x/smx/src/modules/infra/dir-handler.ts>DirHandler

Manage and sync scripts, configs and templates between computers
Latest
class DirHandler
implements IDirHandler
import { DirHandler } from "https://deno.land/x/smx@v0.6.0/src/modules/infra/dir-handler.ts";

Constructors

new
DirHandler(path: string)

Properties

readonly
exists: boolean
readonly
files: string[]
readonly
folders: string[]
readonly
isEmpty: boolean
readonly
isLoaded: boolean
readonly
path: string

Methods

create(): Promise<boolean>
delete(): Promise<boolean>
empty(): Promise<boolean>
load(): Promise<void>
loadFolder(folder: string): Promise<IDirHandler>

Static Methods

create(path: string): Promise<IDirHandler>