public WORawData(List <string> newSourcePathList) { SourcePathList = newSourcePathList; _woDataSource = WODataSource.WipoFtp; _log.Debug($"Xml Source Path: {ConnectionStringsAndAppSettings.Biblio_ZipsPath}"); _log.Debug($"Xml Source File Type: .tar.gz"); }
public WORawData(WODataSource woDataSource) { switch (woDataSource) { case WODataSource.PctBackfileBibliographic: SourcePathList = Directory.EnumerateFiles(ConnectionStringsAndAppSettings.PctBackfileBibliographic_ZipsPath, "*.zip", SearchOption.TopDirectoryOnly).ToList(); _woDataSource = woDataSource; _log.Debug($"Xml Source Path: {ConnectionStringsAndAppSettings.PctBackfileBibliographic_ZipsPath}"); _log.Debug($"Xml Source File Type: .zip"); break; case WODataSource.WipoFtp: SourcePathList = Directory.EnumerateFiles(ConnectionStringsAndAppSettings.Biblio_ZipsPath, "*_xml.tar.gz", SearchOption.AllDirectories).ToList(); _woDataSource = woDataSource; _log.Debug($"Xml Source Path: {ConnectionStringsAndAppSettings.Biblio_ZipsPath}"); _log.Debug($"Xml Source File Type: .tar.gz"); break; } }