private static string GetUniqueFolderPath(string folderPath) { var parent = Directory.GetParent(folderPath).FullName; var name = GetUniqueFolderName(parent, Path.GetFileName(folderPath)); return Path.Combine(parent, name); }