Add support for `clean` option #53

Merged
merged 1 commit into from May 6, 2014

Projects

None yet

2 participants

Contributor

This adds support for a clean method/property, which receives a boolean
indicating whether to remove the destination directory before writing.
The default is true (consistent with previous behavior).

Setting this to false can allow for use in situations where the source
directory is a child of the destination directory, e.g. for gh-pages setups
where the source is contained within the same repository. Note that
moved/removed files will need to be cleaned up by other means.

@kfranqueiro kfranqueiro Add support for `clean` option
This adds support for a `clean` method/property, which receives a boolean
indicating whether to remove the destination directory before writing.
The default is `true` (consistent with previous behavior).

Setting this to `false` can allow for use in situations where the source
directory is a child of the destination directory, e.g. for gh-pages setups
where the source is contained within the same repository.  Note that
moved/removed files will need to be cleaned up by other means.
3274624
Contributor

sexy! thanks

@ianstormtaylor ianstormtaylor merged commit 1ef7689 into segmentio:master May 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment