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

Upgrade copyTree #125

Closed
wants to merge 1 commit into from
Closed

Upgrade copyTree #125

wants to merge 1 commit into from

Conversation

kriskowal
Copy link
Owner

To support target file system and include testing.

To support target file system and include testing.
@Stuk
Copy link
Collaborator

Stuk commented Nov 17, 2014

On mobile at the moment so can't comment on the line.

return sourceFs.copy(source, target); looks wrong. Shouldn't there be the targetFs?

@kriskowal
Copy link
Owner Author

Good catch.

@kriskowal
Copy link
Owner Author

Also, pending tests and a corresponding change to v2. Not this week though.

if (stat.isFile()) {
return sourceFs.copy(source, target);
} else if (stat.isDirectory()) {
return sourceFs.exists(target).then(function (targetExists) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be targetFs.exists

Copy link
Collaborator

Choose a reason for hiding this comment

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

ACK

@kriskowal
Copy link
Owner Author

Fixes #113

@kriskowal kriskowal self-assigned this Feb 17, 2015
@hthetiot hthetiot added this to the Future milestone May 5, 2017
@hthetiot
Copy link
Collaborator

Why dont we merge @kriskowal ?

@hthetiot hthetiot modified the milestones: Future, 1.13 Jul 20, 2018
@hthetiot hthetiot closed this Jul 20, 2018
@hthetiot hthetiot deleted the copy-tree-v1 branch July 20, 2018 02:35
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.

3 participants