We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! Could you provide rename from https://emscripten.org/docs/api_reference/Filesystem-API.html#FS.rename May be It will be easier for you than do it
public async renameFile(oldPath: string, newPath: string) { try { const fileData = await this.webr.FS.readFile(oldPath); await this.webr.FS.writeFile((newPath, fileData); await this.webr.FS.unlink(oldPath); } catch (e) { if (e instanceof WebrError) { throw new Error(`Unable to rename file: "${oldPath}".`); } Logger.$error(e); } }
for me.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello!
Could you provide rename from https://emscripten.org/docs/api_reference/Filesystem-API.html#FS.rename
May be It will be easier for you than do it
for me.
The text was updated successfully, but these errors were encountered: