Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix calculatePatch to unlink files first when we are to remove a directory. #52

Merged
merged 1 commit into from
Dec 15, 2016

Conversation

canufeel
Copy link
Contributor

@canufeel canufeel commented Dec 15, 2016

When directory is to be removed the files in it should be subject to unlinking first as fs.rmdirSync used by broccoli-funnel would only deal with empty directories and would raise an Error as a result. The bug seems to be introduced in cb0f431 as previously unlinking files was actually pushed to additions/operations Array in order to be executed before removals concatenation.

Probably related - #51

…unlinking first as fs.rmdirSync only can deal with empty dirs
@stefanpenner
Copy link
Owner

@canufeel awesome thank you very much, this totally fixes the bug mentioned.

@stefanpenner stefanpenner merged commit 3d7d53b into stefanpenner:master Dec 15, 2016
@stefanpenner
Copy link
Owner

@canufeel this PR, made @hjdivad realize how we botched our original algorithm. We believe #53 builds on your work, and restores the algorithm to what was intended (sans our bug).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants