Options
All
  • Public
  • Public/Protected
  • All
Menu

Module frameworks/filesystem/refresh

Index

Functions

Functions

  • refresh(folderPath: string, trashExistingFolder?: boolean): string
  • description

    Refreshing a folder can happen in two ways:

    1. If it exists: Delete and then re-create it.
    2. If it does not exist: Create it.

    This supports both the newer post-Node 14.14.0 method, fs.rmSync(), and the older method, fs.rmdirSync().

    Parameters

    • folderPath: string
    • trashExistingFolder: boolean = true

    Returns string

Generated using TypeDoc