Programatically recover files from Trash on OSX [closed]

I'm looking for a way to recover files from the trash using Objective-C/Cocoa. I know how to put files in the trash, but I don't know how to restore from there.

The Apple documentation for untrashItemWithIdentifier:toParentItemIdentifier:completionHandler: states that the method is for iOS.

Is there something similar I can use on OSX?

I can find the Trash directory location using this, and now all I need to know is the original path (where the file was put to Trash from) and just copy the file from Trash to that place.



from Recent Questions - Stack Overflow https://ift.tt/3o4SRB3
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)