예제 #1
0
 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");
 }
예제 #2
0
        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;
            }
        }