axiom icon indicating copy to clipboard operation
axiom copied to clipboard

Inconsistent behavior of openContext for Jsfs, nodefs and domfs

Open rpaquay opened this issue 9 years ago • 1 comments

There is a difference in behavior between jsfs and (domfs, nodefs) wrt to calling openContextwhen path points to a non existent file:

  • jsfs returns a rejected promise, where as (domfs, nodefs) return a fullfilled one
  • (domfs, nodefs) return a rejected promise when calling open

We probably should pick one, and I would vote for the (domfs, nodefs) one as it makes createOpenContext a lighter weight operation.

rpaquay avatar Apr 21 '15 17:04 rpaquay

Also,

  • jsfs returns AxiomError.NotFound
  • (domfs, nodefs) return AxiomError.Invalid (invalid path)

rpaquay avatar Apr 21 '15 17:04 rpaquay