Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Replace ncp, mkdirp, and rimraf with fs-extra for io.js support #277

Merged
merged 3 commits into from
Jan 27, 2015
Merged

Replace ncp, mkdirp, and rimraf with fs-extra for io.js support #277

merged 3 commits into from
Jan 27, 2015

Conversation

corbinu
Copy link

@corbinu corbinu commented Jan 27, 2015

Fixes issue #275 by replacing ncp, mkdirp, and rimraf with fs-extra. Have tested iojs 1.0.4 on OS X. I will add iojs testing to the travis.yml as soon as travis supports it per travis-ci/travis-ci#3108

@@ -351,7 +348,7 @@ function copyIntoPlace(extractedPath, targetPath) {
.then(function () {
// Cleanup extracted directory after it's been copied
console.log('Removing', extractedPath)
return kew.nfcall(rimraf, extractedPath).fail(function (e) {
return kew.nfcall(fs.remove, extractedPath).fail(function (e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this is now obsolete? fp.move is equivalent to ncp + rimraf

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will check

@nicks
Copy link
Contributor

nicks commented Jan 27, 2015

@corbinu
Copy link
Author

corbinu commented Jan 27, 2015

Will do

@corbinu
Copy link
Author

corbinu commented Jan 27, 2015

Signed and removed the unnecessary fs.remove code

@nicks
Copy link
Contributor

nicks commented Jan 27, 2015

lgtm!

nicks added a commit that referenced this pull request Jan 27, 2015
Replace ncp, mkdirp, and rimraf with fs-extra for io.js support
@nicks nicks merged commit f3dcca8 into Medium:master Jan 27, 2015
nicks pushed a commit that referenced this pull request Jan 27, 2015
This reverts commit f3dcca8, reversing
changes made to d3b860c.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants