示例#1
0
文件: Blob.cs 项目: myso42/storage
 /// <summary>
 /// Creates a new instance
 /// </summary>
 /// <param name="folderPath">Folder path to the blob</param>
 /// <param name="name">Name of the blob withing a specific folder.</param>
 /// <param name="kind">Blob kind (file or folder)</param>
 public Blob(string folderPath, string name, BlobItemKind kind)
 {
     Name       = name ?? throw new ArgumentNullException(nameof(name));
     Name       = StoragePath.NormalizePart(Name);
     FolderPath = StoragePath.Normalize(folderPath);
     Kind       = kind;
 }