isaiah<p>sometimes simple code is best. i really like this category method on NSFileManager:</p><p>```<br>- (BOOL)linkOrCopyItemAtURL:(nonnull NSURL *)srcURL toURL:(nonnull NSURL *)dstURL error:(NSError *__autoreleasing _Nullable * _Nullable)error {</p><p> BOOL success = [self linkItemAtURL:srcURL toURL:dstURL error:error];</p><p> return (success) ?: [self copyItemAtURL:srcURL toURL:dstURL error:error];</p><p>}</p><p>```</p><p><a href="https://mastodon.social/tags/obj" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>obj</span></a>-C <a href="https://mastodon.social/tags/AppKit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AppKit</span></a></p>