Skip to content

Conversation

christianalfoni
Copy link
Contributor

No description provided.

Copy link

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

codesandbox bot commented Sep 2, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Sep 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
projects-docs Ready Ready Preview Comment Sep 2, 2025 1:07pm

@@ -32,6 +32,18 @@ await client.fs.writeFile("./hello.bin", new Uint8Array([1, 2, 3]));
// Reading binary files
const content = await client.fs.readFile("./hello.bin");
console.log(content);

// Bach write files (This zips down the content, does a singel write and unzips on Sandbox)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would suggest rewording this to be a little clearer. e.g

// Adds batch writing function. Usage guide:

  • Call client.fs.batchWrite
  • Provide path(s) and file contents.

Specified files will be combined into a zip archive. Which will then be uploaded to the Sandbox with a single write.

Once uploaded, files will automatically be unzipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants