test-filesystem
    Preparing search index...

    Function removeDirectory

    • Return a promise to be completed once the specified directory is deleted.

      Parameters

      • dirPath: string

        The path of the directory to remove, if it exists.

      Returns Promise<any>

      Resolves with dirPath once removed (or immediately, if it didn't exist); rejects with the removal error otherwise.