Skip to content

Commit

Permalink
Added Diagnostics.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Mar 30, 2024
1 parent 38fdea4 commit eb45538
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public UploadFilesToFrbServer(IResults results, UploadType uploadType, string us

public override void ExecuteStep()
{
Results.WriteMessage($"Uploading {uploadType}");
if(uploadType == UploadType.Entire)
{
UploadGumFiles();
Expand Down Expand Up @@ -208,12 +209,17 @@ private static void UploadTemplateFiles(string _ftpFolder, IResults Results)
{
string templateDirectory = DirectoryHelper.ReleaseDirectory + @"ZippedTemplates/";


var zippedTemplateFiles = Directory.GetFiles(templateDirectory, "*.zip").ToArray();

Results.WriteMessage($"Found {zippedTemplateFiles.Length} files to upload");

using (var client = SftpManager.GetClient(host, Username, Password))
{
client.Connect();


foreach (var file in Directory.GetFiles(templateDirectory, "*.zip"))
foreach (var file in zippedTemplateFiles)
{
var fileName = FileManager.RemovePath(file);

Expand Down

0 comments on commit eb45538

Please sign in to comment.