Following function getFtpConnection is designed to establish an FTP connection using a URI string.
This URI includes the username, password, hostname, port, and path, formatted as follows:
Function assumes that the provided URI is well-formed and that the FTP server, username, and password are correct.
The output of the function is of course the connection ID, which you can then normally work with further.