I use URL
bookmark data
(with security scope). After a file was moved to the trash (presumably when the App was not running), the bookmark is updated. That is generally good, but when a file was moved to the trash, I really want to reflect that and remove my bookmark.
The only way I can think to get around it is to store the original URL
and compare their absoluteString
or check for .Trash
.
Is there a (simple?) way to check that bookmark data
is now pointing to the Trash?