-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DatArchive API only persists to memory #2
Comments
Also, it'd be nice to set |
I'm actually using dat-node for the Dat interaction and it should already be persisting to It doesn't write the actual files to those folders, but it writes the content and metadata feeds which can be used for fetching files from the archive. The reason it doesn't copy the "current version" to the FS is that it would result in duplicated content on disk. |
Cool. I see that now. I think I was confused at first because all my calls to
But, if I skip the download step, the next time I run it, I am indeed able to read the |
Deleting my |
You know what, I think I saw this happen to me in Beaker! It seems that sometimes, if you already have some content downloaded, invoking The most suspicious part is here. I'll open an issue in Beaker to see if it's a bug we're encountering with Dat itself. |
By default node-dat-archive only writes to memory. It'd be nice if the polyfill wrote to
.webrun/datcache
or this was somehow globally configurable, like how there's a setting when you first run Beaker Browser where to save your dat archives (maybe via an environment variable such asWEBRUN_DATARCHIVE_DIRECTORY
).The text was updated successfully, but these errors were encountered: