Technical Q&A 1497
and this question (whose answer copied from the tech note) indicate that, when getting fBsyErr
from FSDeleteObject
, the proper workaround is to call FSUnlinkObject
on 10.5+.
What is the technical difference between the two APIs FSDeleteObject
and FSUnlinkObject
(other than noting that FSUnlinkObject
does not appear in the documentation)? Why should unlink
be the fallback and not the primary API?
I'd guess that FSDeleteObject
came first because it continues a line of file-deletion functions that existed long before the Mac OS merged with Unix, whereas unlinking a file is a Unix concept.