Example #1
0
 public FileImpInfo(FileInfo info)
 {
     this.FullPath     = info.FullName;
     this.FileName     = StringHandler.GetFilename(this.FullPath);
     this.SmartName    = StringHandler.GetSmartName(this.FileName);
     this.DateModified = info.LastWriteTimeUtc.Ticks;
     this.DataSize     = info.Length;
     this.SmartId      = (long)IdCipher.GetKeyFromText(this.SmartName);
     this.FileType     = FileTypeFinder.DetermineFileType(this.FileName);
     FindLastUsage();
 }
Example #2
0
        public FileImpInfo(string path)
        {
            this.FullPath  = path;
            this.FileName  = StringHandler.GetFilename(path);
            this.SmartName = StringHandler.GetSmartName(this.FileName);
            this.SmartId   = (long)IdCipher.GetKeyFromText(this.SmartName);
            this.FileType  = FileTypeFinder.DetermineFileType(this.FileName);

            CheckDate();
            FindLastUsage();
        }