diff --git a/scripts/rsync_from_ncbi.pl b/scripts/rsync_from_ncbi.pl index 4911731..7069488 100755 --- a/scripts/rsync_from_ncbi.pl +++ b/scripts/rsync_from_ncbi.pl @@ -43,7 +43,7 @@ my $full_path = $ftp_path . "/" . basename($ftp_path) . $suffix; # strip off server/leading dir name to allow --files-from= to work w/ rsync # also allows filenames to just start with "all/", which is nice - if (! ($full_path =~ s#^ftp://${qm_server}${qm_server_path}/##)) { + if (! ($full_path =~ s#^(?:ftp|https)://${qm_server}${qm_server_path}/##)) { die "$PROG: unexpected FTP path (new server?) for $ftp_path\n"; } $manifest{$full_path} = $taxid;