Skip to content
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

Request: add mv in library_fs.js #18791

Open
ericoporto opened this issue Feb 18, 2023 · 2 comments
Open

Request: add mv in library_fs.js #18791

ericoporto opened this issue Feb 18, 2023 · 2 comments

Comments

@ericoporto
Copy link
Contributor

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.

#4952 (comment)

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.

@sbc100
Copy link
Collaborator

sbc100 commented Feb 18, 2023

The FS layer already has rename function which is used to implement __syscall_rename. Or are you talking about high level API for use from JavaScript?

@ericoporto
Copy link
Contributor Author

are you talking about high level API for use from JavaScript?

Yes, high level API.

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

No branches or pull requests

2 participants