Is possible to restore files that has been removed with fs.unlink()
or fs.unlinkSync()
?
unlink
is a system call in linux, the name comes from there. It deletes the file/folder entry or link from filesystem. It does not wipe out the file.
So is it possible to restore such files ? Yes. It is possible, but
Can you guranatee restoration ? No. The space occupied by file is released back to the system. So it can be written over by other processes.
Should you expect restoration ? No. It was not supposed to provide recycle bin like functionality. It is a low level method for programs to access filesystem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With