Пример #1
0
        public static FileName RandomFileName(FolderName folder, string extension)
        {
            var fileName = new FileName(folder, "", extension);

            fileName.Uniquify();

            return(fileName);
        }
Пример #2
0
 public static FileName UniqueFileName(FolderName folder, string name, string extension)
 {
     return(folder.File(UniqueName(folder, name), extension));
 }
Пример #3
0
 public static FileName UniqueFileName(FolderName folder, string extension) => folder.File(uniqueID(), extension);
Пример #4
0
 public static FolderName ResolveFolder(FolderName folder) => ResolveFolder(folder.ToString());
Пример #5
0
 public FolderNameTrying(FolderName folderName) => this.folderName = folderName;
Пример #6
0
        public static Result <FolderName> Folder(this string folderName)
        {
            FolderName folder = folderName;

            return(folder.Must().Exist().OrFailure());
        }