I have a feeling that SftpClient.listFolder() might throw an SftpException on ls( pathToFiles ) if the given path does not exist on the remote. Is this desired behaviour? It could arguably return an empty list because there are no files at the given path, but as it stands it results in a "Failed to acquire file list from remote server!" log (which does not actually include the exception, so I'm only guessing here... see #8).
I have a feeling that SftpClient.listFolder() might throw an SftpException on
ls( pathToFiles )if the given path does not exist on the remote. Is this desired behaviour? It could arguably return an empty list because there are no files at the given path, but as it stands it results in a "Failed to acquire file list from remote server!" log (which does not actually include the exception, so I'm only guessing here... see #8).