public DirectoryEntryInfo(DirectoryEntryStruct header, string name) { IsDirectory = header.Flags == DirectoryFlags.Directory; Size = header.Size; Created = DateTime.FromBinary(header.Created); Updated = DateTime.FromBinary(header.Updated); Name = name; BlockId = header.BlockIndex; }
private void ApplyOverrides(ref DirectoryEntryStruct entry, IDirectoryEntryInfoOverrides overrides) { entry.Size = overrides.Size ?? entry.Size; entry.Updated = overrides.Updated?.Ticks ?? entry.Updated; entry.Flags = overrides.Flags ?? entry.Flags; }