示例#1
0
 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;
 }
示例#2
0
文件: Directory.cs 项目: ilf80/FS
 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;
 }