1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

what is the concept of global recycle bin?

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

  1. shradha

    shradha New Member

    Joined:
    Sep 21, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    how can one devolop global recycle bin code in c?how it works?
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    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