public DossierFileInfo(string file)
        {
            this.Name = file;

            this.Status = DossierStatus.Unknown;
            this.Type   = Dossier.GetFileType(this.Extension);
        }
        public DossierFileInfo(FileInfo file)
        {
            this.Name       = file.Name;
            this.Size       = file.Length;
            this.Attributes = file.Attributes;
            this.Created    = file.CreationTimeUtc;
            if (file.CreationTimeUtc != file.LastWriteTimeUtc)
            {
                this.Modified = file.LastWriteTimeUtc;
            }

            this.Status = DossierStatus.Normal;
            this.Type   = Dossier.GetFileType(this.Extension);
        }
        public DossierReportInfo Get(string extension, DossierTypes?type = null)
        {
            if (String.IsNullOrWhiteSpace(extension))
            {
                extension = "";
            }
            extension = extension.ToLowerInvariant();
            DossierReportInfo info = this.SingleOrDefault(t => t.Extension == extension);

            if (info == null)
            {
                info           = new DossierReportInfo();
                info.Type      = type.HasValue ? type.Value : Dossier.GetFileType(extension);
                info.Extension = extension;
                base.Add(info);
            }
            return(info);
        }