Ejemplo n.º 1
0
        /// <summary>
        /// Open the OVF file and uncompress the compressed files.
        /// </summary>
        /// <param name="ovfFilename">pull path and filename.</param>
        public void UncompressOvfFiles(string ovfFilename)
        {
            EnvelopeType env = OVF.Load(ovfFilename);

            ProcessCompression(env, Path.GetDirectoryName(ovfFilename), null, false);
            OVF.SaveAs(env, ovfFilename);
        }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="env"></param>
 /// <param name="ovfilename"></param>
 /// <param name="method"></param>
 /// <param name="compress"></param>
 public void CompressOvfFiles(EnvelopeType env, string ovfilename, string method, bool compress)
 {
     ProcessCompression(env, Path.GetDirectoryName(ovfilename), method, compress);
     OVF.SaveAs(env, ovfilename);
 }