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

Better FileSystem #7

Open
YurySolovyov opened this issue Mar 3, 2015 · 4 comments
Open

Better FileSystem #7

YurySolovyov opened this issue Mar 3, 2015 · 4 comments

Comments

@YurySolovyov
Copy link

Existence of modules like fs-plus or fs-extra seems to be an indicator that current fs module can be not enough. For example there are no methods for copying / moving files and folders.

We can also use this topic for general fs additions / changes, I just started with initial ones.

@silverwind
Copy link

On Windows, I've found graceful-fs to be pretty much essential to avoid all kinds of strange errors that won't happen on other platforms.

@mikeal
Copy link
Contributor

mikeal commented Mar 10, 2015

I don't think that the existence of third party modules means the stdlib is lacking. If we take that approach we'll end up with the Python stdlib.

That said, if there is fundamental functionality lacking then we should add it. Moving/copying directories seems pretty "fundamental" and also quite difficult and not something where we actually gain much from having multiple implementations.

@Fishrock123
Copy link

Existence of modules like fs-plus or fs-extra seems to be an indicator that current fs module (...)

I think in general, the error (handling) system for fs and similar operations is very raw, and that probably the big pain point.

Maybe the promisified-fs idea could help here?

@mikeal
Copy link
Contributor

mikeal commented Apr 21, 2015

I think in general, the error (handling) system for fs and similar operations is very raw, and that probably the big pain point.

Yup, this bit us a bit too when libuv improved their error message streams and we broke a lot of people's more naive tests without realizing we were doing it.

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

4 participants