Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. get a list of file from a server with Qt 5.8
Forum Updated to NodeBB v4.3 + New Features

get a list of file from a server with Qt 5.8

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 760 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cocopops
    wrote on last edited by
    #1

    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

    JonBJ 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What about using curl ? See this answer on a similar thread.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • C cocopops

        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

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved