You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// helper to read the manifest into an object
function readManifest (archive, cb) {
return maybe(cb, async function () {
var data = await readFile(archive, DAT_MANIFEST_FILENAME)
return JSON.parse(data.toString())
})
}
The text was updated successfully, but these errors were encountered:
@chrisekelley From what I understand, DatArchive.fork creates a new Dat Archive and then copies the contents from the source Archive into the destination Archive. It's like git pull, a command that is a shortcut to a handful of other commands. When dat-archive-web is implemented in dat-gateway, DatArchive.fork could be an abstraction over DatArchive.create, DatArchive.readFile, and DatArchive.writeFile.
Re: our discussion on what stuff should happen in the gateway, vs what should happen in the client - want to note https://dat-multiwriter-web.glitch.me - amazing all the stuff that is happening in this client!
I've noticed in node-dat-archive that fork is not yet implemented? What are the issues in making this work? Some background:
Following the code:
more on pda.readManifest(srcArchive). from https://github.com/beakerbrowser/pauls-dat-api
The text was updated successfully, but these errors were encountered: