Unsolved get a list of file from a server with Qt 5.8
-
Hello everybody,
for a project I work with Qt 5.8 and I need to get a list of name of file from a server. the problem and I have to use QNetworkAccessManager because QFtp is removed and that QNetworkAccessManager do not have function which allow to get a list of file.
Do you have an idea of how can I resolve my problem ?
Apparently I have to recompile the old QFtp class or is there another way ?
Thank you for your help
-
Hi,
What about using curl ? See this answer on a similar thread.
-
@cocopops
https://forum.qt.io/topic/75861/qt-5-8-how-to-get-dir-list-from-ftp-server gives you the definitive answer.In summary you cannot get a file list via just
QNetworkAccessManager
.