emscripten-core / emscripten-core/emscripten

Request: add mv in library_fs.js

Open
#18,791 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

It would be nice to be able to do a mv operation in library_fs.js, specially one that can move directories even if they have files and other directories inside of it.

https://github.com/emscripten-core/emscripten/issues/4952#issuecomment-1435327297

The need arise when I was trying to figure a sensible approach for deleting the permanent files in IDBFS, and it felt like I don't want to really delete right away, but first move to a recycle bin like location to evaluate if the deletion had the expected result and later actually delete them from the recycle bin. But it turns out I can't figure out how to move the files/directories.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.