fileURLWithFileSystemRepresentation static method
fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:
Implementation
static NSURL fileURLWithFileSystemRepresentation(
ffi.Pointer<ffi.Char> path, {
required bool isDirectory,
NSURL? relativeToURL,
}) {
objc.checkOsVersionInternal(
'NSURL.fileURLWithFileSystemRepresentation:isDirectory:relativeToURL:',
iOS: (false, (7, 0, 0)),
macOS: (false, (10, 9, 0)),
);
final $ret = _objc_msgSend_1n40f6p(
_class_NSURL,
_sel_fileURLWithFileSystemRepresentation_isDirectory_relativeToURL_,
path,
isDirectory,
relativeToURL?.ref.pointer ?? ffi.nullptr,
);
return NSURL.fromPointer($ret, retain: true, release: true);
}