RE: Request for feedback: Filesystem API

From: Brendan Eich [mailto:brendan@mozilla.org]


> > That leaves it for use in move and copy, both of which are derivative operations.
> 
> Not move: atomic rename(2) is a primitive.

You're clearly right about this. I was misled by the return type; AbortableProgressPromise had me thinking of a long-running cancelable operation, which move generally isn't (except perhaps between drives or similar). A Promise-returning move makes sense as atomic.

Received on Sunday, 11 August 2013 00:28:11 UTC