public FileDirectoryDescriptor(sio.FileStream fs) { int i; hdr = misc.ReadStruct<Header>(fs); name = fs.ReadString(hdr.lenFilId); isDirectory = (hdr.filFlags & 2) == 2; if (!isDirectory) if ((i = name.LastIndexOf(';')) > -1) name = name.Remove(i, name.Length - i); for (i = DefaultSize + hdr.lenFilId; i < hdr.lenDirRec; i++) //skip 'System use' field fs.ReadByte(); }