protected override bool MoveToNextEntry()
        {
            do
            {
                if ((tarEntry = ReadStream.GetNextEntry()) == null)
                {
                    return(false);
                }
            }while (tarEntry.IsDirectory);

            return(true);
        }
Example #2
0
        protected override bool MoveToNextEntry()
        {
            do
            {
                if ((zipEntry = ReadStream.GetNextEntry()) == null)
                {
                    return(false);
                }

                if (throwOnEncryptedEntries && zipEntry.IsCrypted)
                {
                    throw AMSIRejectedByPolicyException.ZipContainsCryptedEntry(zipEntry.Name);
                }
            }while (!zipEntry.IsFile);

            return(true);
        }