app / com.otago.open / PDFOperations / fetchLinks

fetchLinks

fun fetchLinks(parentFolder: String, url: String, doFolders: Boolean): ArrayList<FetchResult>?

Retrieve links from a table containing href elements.

Parameters

parentFolder - The folder in which the downloaded content will be stored

url - The URL at which we will look for folders and PDFs etc

doFolders - Whether we want to include folders. Currently this should only be true if paperSubName is "" or "index.php" due to the COSC website navigation structure

See Also

PDFItem

Return
The list of FetchResults for each PDF (or folder if doFolders is true) on the page