You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -542,6 +546,9 @@ open class NSURL : NSObject, NSSecureCoding, NSCopying {
542
546
// TODO: should be `checkResourceIsReachableAndReturnError` with autoreleased error parameter.
543
547
// Currently Autoreleased pointers is not supported on Linux.
544
548
openfunc checkResourceIsReachable()throws->Bool{
549
+
#if os(WASI)
550
+
returnfalse
551
+
#else
545
552
guard isFileURL,
546
553
let path = path else{
547
554
throwNSError(domain: NSCocoaErrorDomain,
@@ -557,6 +564,7 @@ open class NSURL : NSObject, NSSecureCoding, NSCopying {
557
564
}
558
565
559
566
returntrue
567
+
#endif
560
568
}
561
569
562
570
/* Returns a file path URL that refers to the same resource as a specified URL. File path URLs use a file system style path. An error will occur if the url parameter is not a file URL. A file reference URL's resource must exist and be reachable to be converted to a file path URL. Symbol is present in iOS 4, but performs no operation.
0 commit comments