public ItemInfo(UPath path, ItemType type, FileSize size, DateTime lastWriteTime, params IHosting[] hostings) { Path = path; Name = path.Name; Type = type; IsDirectory = Type == ItemType.Directory; IsFile = Type == ItemType.File; Size = size; LastWriteTime = lastWriteTime; Hostings = hostings; }
public DiskSpaceInfo(FileSize freeSpace, FileSize usedSpace) { FreeSpace = freeSpace; UsedSpace = usedSpace; TotalSpace = freeSpace + usedSpace; }