Beispiel #1
0
 internal SevenZipItemInfo(string aName, uint aCrc, bool aIsCrypted, ulong aSize, ulong aCompressedSize)
 {
     name = aName;
     while (true)
     {
         var m = regPreClean.Match(name);
         if (!m.Success)
         {
             break;
         }
         name = name.Substring(m.Value.Length);
     }
     while (name.Length != 0 && name[0] == Path.DirectorySeparatorChar || name[0] == Path.AltDirectorySeparatorChar)
     {
         name = name.Substring(1);
     }
     name           = Replacements.CleanFileName(name);
     crc            = aCrc;
     isCrypted      = aIsCrypted;
     size           = aSize;
     compressedSize = aCompressedSize;
 }