Captain is currently in ALPHA. We are happy to get your feedback
Core API
Helpers Utils Fs

Module: helpers/utils/fs

Table of contents

Functions

Functions

clearDirectory

clearDirectory(path): void

Delete all files within the specified directory.

Parameters

NameTypeDescription
pathstringThe directory path where files will be deleted.

Returns

void

Defined in

src/electron/helpers/utils/fs.ts:16 (opens in a new tab)


createDirectory

createDirectory(path): string

Parameters

NameType
pathstring

Returns

string

Defined in

src/electron/helpers/utils/fs.ts:3 (opens in a new tab)