navigate_ftp: Navigate Wolrd Pop FTP

navigate_ftpR Documentation

Description

Internal function used to navigate through the World Pop FTP's folders.

Usage

navigate_ftp(folderLst, iso, pathFTP, pathFTP0, allowInteractivity, testMode)

Arguments

folderLst

character vector; folder names within the main World Pop FTP directory

iso

character; the country ISO alpha-3 code

pathFTP

character; the path of the main World Pop FTP directory. The variable IS updated during the process.

pathFTP0

character; the path of the main World Pop FTP directory. The variable IS NOT updated during the process.

Details

The function keeps running while no folder whose name is the country ISO code is reached.

Value

a list of length 2; the first element is a character vector that contains the available files in the targeted folder and the second element is the path of the targeted folder.


ptimoner/inAccMod documentation built on Jan. 27, 2025, 9:34 a.m.