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. how to browse folders and read files from server QT6

how to browse folders and read files from server QT6

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 1.1k Views 2 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.
  • F Offline
    F Offline
    Fellipe
    wrote on last edited by
    #1

    hello, I am developing an application so whenever there is an update on the server the application will update itself, I have already communicated with the server using (QNetworkAccessManager/QNetworkRequest/QNetworkReply) and I would like to know how I can browse directories and read files, some qt class specific that can do this so I can study more?

    About the software:
    this app when started will check the integrity of my files by comparing them with the server files, i am trying to do it this way because i want the app to download only what is needed, if anyone has a better idea and can share it i will be grateful

    jsulmJ 1 Reply Last reply
    0
    • F Fellipe

      hello, I am developing an application so whenever there is an update on the server the application will update itself, I have already communicated with the server using (QNetworkAccessManager/QNetworkRequest/QNetworkReply) and I would like to know how I can browse directories and read files, some qt class specific that can do this so I can study more?

      About the software:
      this app when started will check the integrity of my files by comparing them with the server files, i am trying to do it this way because i want the app to download only what is needed, if anyone has a better idea and can share it i will be grateful

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Fellipe Read folders and files on the server?
      I suggest to implement a REST API which will provide directories/filenames/checksums(for comparision) to the clients.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • F Offline
        F Offline
        Fellipe
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • F Offline
          F Offline
          Fellipe
          wrote on last edited by Fellipe
          #4

          I have a test server here to do, I can already download files, but I can't browse and read files from different folders @jsulm

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

            Hi and welcome to devnet,

            What are you using server side ?
            An FTP equivalent ?
            S3 equivalent ?
            Custom protocol ?

            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
            0
            • F Offline
              F Offline
              Fellipe
              wrote on last edited by
              #6

              @SGaist hello, my test server is http "http://my-server/updates/", this would be the directory where I would iterate.

              jsulmJ S 2 Replies Last reply
              0
              • F Fellipe

                @SGaist hello, my test server is http "http://my-server/updates/", this would be the directory where I would iterate.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Fellipe You did not answer the questions...

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1
                • F Fellipe

                  @SGaist hello, my test server is http "http://my-server/updates/", this would be the directory where I would iterate.

                  S Offline
                  S Offline
                  SimonSchroeder
                  wrote on last edited by
                  #8

                  @Fellipe HTTP is for requesting files you already know the path to (and the webserver still might present something else as a 'file'). There is no query mechanism. Usually, you only access things that have a link (search engines like Google only know about HTTP paths that are a link on a different web page).

                  My guess is that you have something running on the server that will give you a file listing as HTML. Then you need to parse the HTML to get to the information. There is nothing built into Qt to get file/directory information from a text/HTML file.

                  1 Reply Last reply
                  0

                  • Login

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