src/vs/platform/userDataSync/common/userDataSync.ts/getPathSegments
export function getPathSegments(collection: string | undefined, ...paths: string[]): string[] {
	return collection ? [collection, ...paths] : paths;
}