ccgus / CocoaScript

JavaScript + the Cocoa frameworks, and then ObjC brackets show up to party as well.
Other
618 stars 58 forks source link

[[NSFileManager defaultManager] fileExistsAtPath:"/foo/bar" isDirectory:true] crashes Sketch #35

Closed corysimmons closed 8 years ago

corysimmons commented 8 years ago

In the meantime, is there another way to detect whether an empty directory exists?

ccgus commented 8 years ago

That method takes a bool*, not a bool, so that's probably why it's crashing.

I see from another post by you, that you've found another way.