Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

fs.copyDirectory #104

Open
metabench opened this issue Oct 12, 2017 · 1 comment
Open

fs.copyDirectory #104

metabench opened this issue Oct 12, 2017 · 1 comment

Comments

@metabench
Copy link

I suggested this in node.js, but the response was that it's not going in because it's a convenience function, and platforms lack the API to do this in one go. Does ayo.js value convenience here?

I also recommend an alias of copyFolder.

nodejs/node#15797

@sandfox
Copy link

sandfox commented Oct 12, 2017

I'm inclined to echo the sentiments of nodejs here. Ideally core/stdlib or whatever one calls the available functions that ship with ayojs should be as minimal as possible and ideally provide only either what cannot reasonabley be done in userland, or what would provide a substantial building block to allow interoperation between userland modules. Unfortunately I don't think a function like fs.copyFolderwould fit the description.

In general more the things that can happen in userland the better is it for the ecosystem as change and experimenation can happen much faster there.

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

No branches or pull requests

2 participants