Пример #1
0
        }         // ctor

        /// <summary>Erzeugt einen Index-Eintrag.</summary>
        /// <param name="relativePath"></param>
        /// <param name="fileInfo"></param>
        public FileIndexItem(string relativePath, FileInfo fileInfo)
        {
            this.state        = FileIndexState.Modified;
            this.relativePath = relativePath;
            this.archiveName  = null;
            Update(fileInfo);
        }         // ctor
Пример #2
0
        }         // proc Equal

        /// <summary>Aktualisiert den Index-Eintrag.</summary>
        /// <param name="fileInfo"></param>
        public void Update(FileInfo fileInfo)
        {
            this.creationTime   = fileInfo.CreationTimeUtc;
            this.lastAccessTime = fileInfo.LastAccessTimeUtc;
            this.lastWriteTime  = fileInfo.LastWriteTimeUtc;
            this.attributes     = (int)fileInfo.Attributes;
            this.length         = fileInfo.Length;
            this.state          = FileIndexState.Modified;
        }         // proc Update
Пример #3
0
 /// <summary>Erzeugt einen Index-Eintrag aus den angegeben Daten. Wird zur Serialisierung verwendet.</summary>
 /// <param name="relativePath"></param>
 /// <param name="creationTime"></param>
 /// <param name="lastAccessTime"></param>
 /// <param name="lastWriteTime"></param>
 /// <param name="length"></param>
 /// <param name="attributes"></param>
 /// <param name="archiveName"></param>
 public FileIndexItem(string relativePath, DateTime creationTime, DateTime lastAccessTime, DateTime lastWriteTime, long length, int attributes, string archiveName)
 {
     this.state          = FileIndexState.None;
     this.relativePath   = relativePath;
     this.creationTime   = creationTime;
     this.lastAccessTime = lastAccessTime;
     this.lastWriteTime  = lastWriteTime;
     this.length         = length;
     this.attributes     = attributes;
     this.archiveName    = archiveName;
 }         // ctor
Пример #4
0
        }         // proc Update

        /// <summary>Setzt den Eintrag auf unverändert.</summary>
        public void Unmodified()
        {
            this.state = FileIndexState.Unmodified;
        }         // proc Unmodified