I want to download a file from a user account on one of our data systems. If I try to use QUrl("ftp://user:passwd@host/file.dat") is does not work. When I try to use it in QNAM the error reports 'Could not get file size'. I can see the file sitting in the user account, but I cannot seem to access the file.
I have played around a bit and have found that if I use "ftp://user:passwd@host/home/user/file.dat" it will download the file. I cannot guarantee that the directory will be the same for all the logins.
Also, if I build the QUrl by its components, setHost/setUserName/setPassword and for setPath just use "file.dat", it will also properly download the file (even though the url.toString() shows the same original "ftp://user:passwd@host/file.dat" string)
Can I use QUrl/QNAM to access a local login file?
Bookmarks