Try replacing FSDeleteObject with [[NSFileManager defaultManager] removeItemAtPath: pth error: &erro];
Worked for me. Delete of folder containing 7500 files went from realllly slow down to nice and quick. I also found that other older FSRef based api's got slow. Sandboxing? Discouraging use of elderly API's? Time to ditch the old stuff anyway. Vojtûch Meluzín Sunday, April 22, 2018 9:55 PM > Hi, > > I have a custom installer, which places various audio plugins (bundles) > onto the target system and as an uninstaller it removes them. It manages > them the same way as any other folder (containing folders and files). Since > OSX High sierra deleting these files became extremely slow, almost like the > OSX is checking the bundles after every change. On some computers it also > blocks write access to the files inside these bundles (e.g. if the > installer is used again). It almost seems like some pseudosecurity measure > gone wrong, not the first time on OSX after all... > > Any ideas what is going on? For the record I'm using FSDeleteObject to > delete files/folders, I know deprecated, but I don't see a reason for > messing up with new API if the old one works. > > Thanks in advance. > Vojtech > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/mike1throckmorton%40gmail.com > > This email sent to mike1throckmor...@gmail.com ----------------------------------------------- Mike Throckmorton mike1throckmor...@gmail.com Software Engineer My Mac running Mac OS X has been up 4 days, running Mac OS X and it's starting to drift. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com