what is the concept of global recycle bin?

shradha's Avatar
Newbie Member
how can one devolop global recycle bin code in c?how it works?
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
A recycle bin for what exactly? Used memory? Or like the recycle bin in Windows?

If the latter, it requires that the OS delete file function is modified so that instead of permanently deleting a file, it instead moves the file to the recycle bin instead of deleting it. The function would also need to record the original location and filename so that the file can be recovered. Also if the recycle bin has a maximum size, as in Windows, it needs to keep track of when files were moved into the recycle bin so that it can permanently delete old stuff to make room for new. A new function to permanently delete a file would then need to be created.