In Windows File Explorer if I create a shortcut to a folder on the disk and then rename/remove/move to trash the folder I will be no longer able to click and open the link.
On Mac if I drag a folder to the Finder sidebar and then do the same operations with the folder, Finder will track it somehow and let me open the folder even if I move it to the Trash.
What macOS API is responsible for this?
Best Answer
I'm not sure if there's an API for it, per se, it's simply the way it operates. Items in the Finder sidebar are actually aliases to the original item.
From What Are Aliases, Symbolic Links, and Hard Links in Mac OS X:
(Or do you mean an API that allows you to create aliases from your own application?)