public void ExecutePostUpdateAction(Schema.File updatedFile, string localFilePath) { if ("ShellExecute".Equals(updatedFile.Action, StringComparison.InvariantCultureIgnoreCase) && System.IO.File.Exists(localFilePath)) { Process.Start(localFilePath); } }
protected override void OnFileUpdated(Schema.File file, string localFilePath) { if (!string.IsNullOrEmpty(this.m_Created)) { // Set the file time. All updates files will get the date & time of the check file, which is fine! DateTime utcModifiedTime = DateTime.Parse(m_Created, CultureInfo.InvariantCulture); System.IO.File.SetLastWriteTimeUtc(localFilePath, utcModifiedTime); } }
protected virtual void OnFileUpdated(Schema.File file, string localFileName) { }