src/vs/platform/files/browser/htmlFileSystemProvider.ts/split
function split(path: string): [string, string] | undefined {
	const match = /^(.*)\/([^/]+)$/.exec(path);

	if (!match) {
		return undefined;
	}

	const [, parentPath, name] = match;
	return [parentPath, name];
}