getFilenameFromUri

external fun getFilenameFromUri(uri: String): String(source)

Given a URI, returns the last segment of the URI, removing any path or query information.

//fileName will be"simple.czml";
const fileName = getFilenameFromUri('/Gallery/simple.czml?value=true&example=false');

Return

The last segment of the Uri.

Parameters

uri

The Uri.

See also