Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LinuxMount" /> class.
        /// </summary>
        /// <param name="isoManager">The ISO manager that mounted this ISO file.</param>
        /// <param name="isoPath">The path to the ISO file.</param>
        /// <param name="mountFolder">The folder the ISO is mounted in.</param>
        internal LinuxMount(LinuxIsoManager isoManager, string isoPath, string mountFolder)
        {
            _linuxIsoManager = isoManager;

            IsoPath     = isoPath;
            MountedPath = mountFolder;
        }
Example #2
0
        internal LinuxMount(LinuxIsoManager isoManager, IMediaEncoder mediaEncoder, string isoPath, string mountFolder, string container)
        {
            linuxIsoManager   = isoManager;
            this.mediaEncoder = mediaEncoder;

            IsoPath           = isoPath;
            MountedPath       = mountFolder;
            MountedFolderPath = mountFolder;
            MountedProtocol   = MediaProtocol.File;

            if (string.Equals(container, MediaContainer.DvdIso.ToString(), StringComparison.OrdinalIgnoreCase))
            {
                var files = mediaEncoder.GetDvdVobFiles(mountFolder);

                var mountedPath = string.Join("|", files);
            }
            else if (string.Equals(container, MediaContainer.BlurayIso.ToString(), StringComparison.OrdinalIgnoreCase))
            {
                var files = mediaEncoder.GetBlurayM2tsFiles(mountFolder);

                var mountedPath = string.Join("|", files);
            }
        }