Skip to content

Why does the sdk create uls_scratch directory? #24

Closed
@e-e-e

Description

I am a bit confused. I am trying to create a new dat with via the promise syntax and it is creating a directory uls_scratch within my current working directory, but apparently not creating a folder for storing the dat data.

const { DatArchive, destroy } = require("dat-sdk/auto");

async function main() {
  const archive = await DatArchive.create({ title: "My Archive" });
  await archive.writeFile("/example.txt", "Hello World!");
  destroy();
}
main();

What is this directory and why is it not cleaned up? Where is the actually data getting stored?
Or does this use RAM?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions