@shanzhai/create-directory-step
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

@shanzhai/create-directory-step Continuous Integration License FOSSA Status Renovate enabled npm npm type definitions

A Shanzhai step which ensures that a directory exists (as well as all of its parent directories).

Usage

Within a trigger's event handler, return an instance of CreateDirectoryStep similar to the following:

new CreateDirectoryStep(
  `A description of the operation being performed`,
  [`a`, `path`, `to`, `a`, `directory`, `to`, `create`]
)

Any part of the path a/path/to/a/directory/to/create which does not already exist will be created as a directory.

If any part already exists as a file, an error will occur.

If the entire path already exists as a directory, nothing will happen.

Dependencies

This package has no runtime dependencies.

Peer Dependencies

This package has no runtime peer dependencies (it does not expect any other packages to be installed alongside itself).

License

FOSSA Status

Readme

Keywords

none

Package Sidebar

Install

npm i @shanzhai/create-directory-step

Weekly Downloads

5

Version

0.0.11

License

MIT

Unpacked Size

5.36 kB

Total Files

5

Last publish

Collaborators

  • jameswilddev