1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

what is the concept of global recycle bin?

Discussion in 'C' started by shradha, Sep 21, 2010.

  1. shradha

    shradha New Member

    how can one devolop global recycle bin code in c?how it works?
  2. xpi0t0s

    xpi0t0s 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.

Share This Page