public static string PSFilePath(this Bogus.DataSets.System system, char separator) { var drive = Path.GetFileNameWithoutExtension(new Faker().System.FileName()); var path = $"/{system.FilePath()}".Replace('/', separator); return($"{drive}:{path}"); }
public static string DirectoryPathWindows(this Bogus.DataSets.System system, int depth = 2, string drive = "c") => $@"{drive}:\{string.Join(@"\", system.Random.WordsArray(depth))}";