Skip to content

Latest commit

 

History

History

create-directory-step

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@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