fileURLWithPath$2 static method
fileURLWithPath:isDirectory:relativeToURL:
Implementation
static NSURL fileURLWithPath$2(
NSString path, {
required bool isDirectory,
NSURL? relativeToURL,
}) {
objc.checkOsVersionInternal(
'NSURL.fileURLWithPath:isDirectory:relativeToURL:',
iOS: (false, (9, 0, 0)),
macOS: (false, (10, 11, 0)),
);
final $ret = _objc_msgSend_1ged0jd(
_class_NSURL,
_sel_fileURLWithPath_isDirectory_relativeToURL_,
path.ref.pointer,
isDirectory,
relativeToURL?.ref.pointer ?? ffi.nullptr,
);
return NSURL.fromPointer($ret, retain: true, release: true);
}