Exemplo n.º 1
0
        public CellbriteDevice(string source)
        {
            this.Source = source;
            this.Name   = System.IO.Path.GetFileName(source);
            IniConfig config   = new IniConfig(source);
            var       fileName = config.IniReadValue("Dumps", "Image0");
            var       files    = config.ReadSectionKeys(fileName);
            var       dir      = FileHelper.GetFilePath(source);

            this.Mirrors = files.Where(o => o.Key != "PartsCount").Select(file => System.IO.Path.Combine(dir, file.Value)).ToList();
            this.Mirrors.ForEach(f => this.Size += (ulong)new System.IO.FileInfo(f).Length);
        }