Class Updater
Applies file updates to a target directory, scanning source folders, detecting modified files
by hash or timestamp, optionally backing up existing files and reporting progress as content is written.
Assembly: Reportman.Drawing.dll
Syntax
Constructors
View Source
Updater(string)
Declaration
public Updater(string fpath)
Parameters
| Type |
Name |
Description |
| string |
fpath |
|
Fields
View Source
ExcludeExecutingAssembly
Declaration
public bool ExcludeExecutingAssembly
Field Value
View Source
OnProgress
Declaration
public CopyProgress OnProgress
Field Value
View Source
Declaration
public bool PerformBackup
Field Value
Properties
View Source
FilePath
Declaration
public string FilePath { get; }
Property Value
Methods
View Source
CreateFilesTable()
Declaration
public static DataTable CreateFilesTable()
Returns
View Source
FillFiles(DataTable, string, string, bool)
Declaration
public void FillFiles(DataTable xtable, string sourcedir, string subdir, bool copycontent)
Parameters
View Source
GetFiles(string, bool)
Declaration
public DataTable GetFiles(string sourcedir, bool copycontent)
Parameters
| Type |
Name |
Description |
| string |
sourcedir |
|
| bool |
copycontent |
|
Returns
View Source
GetModifiedFiles(DataTable, string, bool, SortedList<string, FileHash>, SortedList<string, FileHash>)
Declaration
public static DataTable GetModifiedFiles(DataTable files, string filesdir, bool copycontent, SortedList<string, FileHash> olderHashes, SortedList<string, FileHash> updatedHashes)
Parameters
Returns
View Source
GetModifiedFilesAsync(DataTable, string, bool, SortedList<string, FileHash>, SortedList<string, FileHash>)
Declaration
public static Task<DataTable> GetModifiedFilesAsync(DataTable files, string filesdir, bool copycontent, SortedList<string, FileHash> olderHashes, SortedList<string, FileHash> updatedHashes)
Parameters
Returns
View Source
Update(DataTable)
Declaration
public void Update(DataTable files)
Parameters