public void Publish(string logicalTablePath) { if (logicalTablePath.Equals("cout", StringComparison.OrdinalIgnoreCase)) { return; } if (Configuration.ShouldPublish) { Trace.WriteLine($"PUBLISH: {logicalTablePath}"); foreach (StreamAttributes item in LocalProvider.Enumerate(logicalTablePath, EnumerateTypes.File, true)) { using (Stream target = RemoteProvider.OpenWrite(item.Path)) { using (Stream source = LocalProvider.OpenRead(item.Path)) { source.CopyTo(target); } } } Trace.WriteLine($"Done with PUBLISH: {logicalTablePath}"); } }