MatrixAI / js-encryptedfs

Encrypted Filesystem for TypeScript/JavaScript Applications
https://polykey.com
Apache License 2.0
10 stars 3 forks source link

Adapt EFS to the File System Interface #32

Closed robert-cronin closed 4 years ago

robert-cronin commented 4 years ago

We should adapt EFS to the File System Interface.

This is pertinent to making EFS work with isomorphic git in js-polykey. All of our current methods work by promises but are exposed in the main object whereas the fs interface describes them as being part of a promises API exposed at fs.promises.

Another thing is lstat does not work properly yet as it only propagates the upperDir method and it might not be loaded. This should be changed to propagating the lowerDir method.

related to https://github.com/MatrixAI/js-polykey/pull/43#discussion_r446655767