export function randomPath(parent?: string, prefix?: string, randomLength = 8): string {
for (let i = 0; i < randomLength; i++) {
let pathCharsTouse: string;
if (i === 0 && isWindows && !prefix && (randomLength === 3 || randomLength === 4)) {
// Windows has certain reserved file names that cannot be used, such