basename(url) {
		url = this.parse(url).url;
		const protocol = this.getProtocol(url);
		if (protocol === "content:") {
			try {
				let { rootUri, docId, isFileUri } = Uri.parse(url);

				if (isFileUri) return this.basename(rootUri);

				if (docId.endsWith("/")) docId = docId.slice(0, -1);
				docId = docId.split(":").pop();
				return this.pathname(docId).split("/").pop();
			} catch (error) {
				return null;
			}
		} else {
			if (url.endsWith("/")) url = url.slice(0, -1);
			return this.pathname(url).split("/").pop();
		}
	}
Returns basename from a url eg. 'index.html' from 'ftp://localhost/foo/bar/index.html'
@param {string} url
@returns {string}