Get remote URL directory listing
getURLDirList(url, pattern = NULL)
url |
|
---|---|
pattern |
|
character
.
Simple directory contents return, including both files and subdirectories.
Best served using FTP instead of HTTP.
Updated 2021-02-02.
url <- "ftp://ftp.ncbi.nlm.nih.gov/genomes/" if ( !isTRUE(nzchar(Sys.getenv("CI"))) && goalie::hasInternet(url) ) { x <- getURLDirList(url) tail(x) }#> [1] "README_GFF3.txt" "README.txt" "refseq" "TARGET" #> [5] "TOOLS" "Viruses"