public static FileName RandomFileName(FolderName folder, string extension) { var fileName = new FileName(folder, "", extension); fileName.Uniquify(); return(fileName); }
public static FileName UniqueFileName(FolderName folder, string name, string extension) { return(folder.File(UniqueName(folder, name), extension)); }
public static FileName UniqueFileName(FolderName folder, string extension) => folder.File(uniqueID(), extension);
public static FolderName ResolveFolder(FolderName folder) => ResolveFolder(folder.ToString());
public FolderNameTrying(FolderName folderName) => this.folderName = folderName;
public static Result <FolderName> Folder(this string folderName) { FolderName folder = folderName; return(folder.Must().Exist().OrFailure()); }