2

There is no restore option when I right click a folder in my trash. Did I do something wrong with my computer to cause it to do away with this option?

The options when I right-click a folder in my Trash

Tetsujin
  • 115,663

1 Answers1

2

From comments, it appears the folder may have been deleted by an app/script.

I general, the only time the Put Back flag is created is if the file/folder is deleted in the 'normal' way, by the user themselves, in Finder.

I'm afraid i don't know how it does this or the spec of the tagging it uses - perhaps someone smarter than me could provide analysis on that - I just know this through empiricism.

Tetsujin
  • 115,663
  • 2
    This post touches on how the Finder "knows" where to "Put Back" a file—essentially, it adds an entry to the Trash's .DS_Store file. Try running hexdump -C ~/.Trash/.DS_Store to see the stored entries (though also note that there are other .Trash folders on disk, like in iCloud Drive, that have their own .DS_Store but are aggregated by Finder into the one "Trash" view). – aaplmath Jan 01 '21 at 20:51