Skip to content

Commit

Permalink
Add .gtfs.zip check
Browse files Browse the repository at this point in the history
  • Loading branch information
mem48 committed May 5, 2024
1 parent 6959040 commit ff13b92
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions R/otp-setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,18 @@ otp_checks <- function(otp = NULL,
} else {
return(FALSE)
}

if(otp_version >= 2){
fls_zip <- list.files(file.path(dir, "/graphs/", router), pattern = ".zip")
if(length(fls_zip) > 0){
if(any(!grepl("gtfs",fls_zip))){
warning(".zip files detected that are not .gtfs.zip, OTP 2.X will ignore these files")
}
}
}



}


Expand Down

0 comments on commit ff13b92

Please sign in to comment.