resolve method
Returns a List of directory names from the parent handle to the specified child entry, with the name of the
child entry as the last array item or null if possibleDescendant
is not a descendant of this
FileSystemDirectoryHandle.
possibleDescendant
: the FileSystemHandle.name
of the FileSystemHandle from which to return the relative
path.
Throws a NotFoundError if this requested directory could not be found at the time operation was processed.
Implementation
Future<List<String>?> resolve(FileSystemHandle possibleDescendant) async {
try {
List<dynamic>? paths = await promiseToFuture(callMethod(this, "resolve", [possibleDescendant]));
if (paths == null || paths == undefined) {
return null;
}
return List.castFrom(paths);
} catch (error) {
if (jsIsNativeError(error, "NotFoundError")) {
throw NotFoundError();
} else {
rethrow;
}
}
}