3 ms·
This is similar to how NSURL on macOS/iOS accesses the filesystem in its constructor: https://developer.apple.com/documentation/foundation/nsurl/1410301-init ht
by layoutIfNeeded 7y ago
This is similar to how NSURL on macOS/iOS accesses the filesystem in its constructor: https://developer.apple.com/documentation/foundation/nsurl/1410301-init https://developer.apple.com/documentation/foundation/nsurl/1...
“ This method assumes that path is a directory if it ends with a slash. If path does not end with a slash, the method examines the file system to determine if path is a file or a directory.”
People often overlook this and then wonder why their app stutters randomly when the UI thread gets blocked on this NSURL ctor :^)