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>
 /// Open the OVF file and compress the uncompressed files.
 /// </summary>
 /// <param name="ovfFilename">pull path and filename.</param>
 /// <param name="method">GZip | BZip2</param>
 public void CompressOvfFiles(string ovfFilename, string method)
 {
     CompressOvfFiles(OVF.Load(ovfFilename), ovfFilename, method, true);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Check the Envelope to see if the files are compressed.
        /// </summary>
        /// <param name="ovfFilename">fullpath/filename to OVF</param>
        /// <param name="method">out method used: Gzip | BZip2</param>
        /// <returns>True|False</returns>
        public bool IsCompressed(string ovfFilename, out string method)
        {
            EnvelopeType env = OVF.Load(ovfFilename);

            return(IsCompressed(env, out method));
        }