How to force wget to download a directory from Dropbox












0














I tried downloading a dropbox directory using the following command.



wget -O reads -r "https://www.dropbox.com/sh/1eqzxexmei28ihx/AAAnjVNqUl8MJFH51j9PILf-a?dl=1


It downloads, but the result is a file not a directory



$ ls
-rw-r--r--@ 1 juliofdiaz staff 5.3M 13 Dec 17:07 reads


Any help with this?










share|improve this question



























    0














    I tried downloading a dropbox directory using the following command.



    wget -O reads -r "https://www.dropbox.com/sh/1eqzxexmei28ihx/AAAnjVNqUl8MJFH51j9PILf-a?dl=1


    It downloads, but the result is a file not a directory



    $ ls
    -rw-r--r--@ 1 juliofdiaz staff 5.3M 13 Dec 17:07 reads


    Any help with this?










    share|improve this question

























      0












      0








      0







      I tried downloading a dropbox directory using the following command.



      wget -O reads -r "https://www.dropbox.com/sh/1eqzxexmei28ihx/AAAnjVNqUl8MJFH51j9PILf-a?dl=1


      It downloads, but the result is a file not a directory



      $ ls
      -rw-r--r--@ 1 juliofdiaz staff 5.3M 13 Dec 17:07 reads


      Any help with this?










      share|improve this question













      I tried downloading a dropbox directory using the following command.



      wget -O reads -r "https://www.dropbox.com/sh/1eqzxexmei28ihx/AAAnjVNqUl8MJFH51j9PILf-a?dl=1


      It downloads, but the result is a file not a directory



      $ ls
      -rw-r--r--@ 1 juliofdiaz staff 5.3M 13 Dec 17:07 reads


      Any help with this?







      dropbox wget






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 13 '18 at 22:17









      Julio DiazJulio Diaz

      1012




      1012






















          1 Answer
          1






          active

          oldest

          votes


















          0














          With the option -O you can specify only a single file, so it is not the correct option to download multiple file.




          -O file

          --output-document=file

          The documents will not be written to the appropriate files, but all will be concatenated together and written to file.




          What you need if you want to specify a directory as a target is -P:




          -P prefix

          --directory-prefix=prefix

          Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories will be saved to, i.e. the top of the retrieval tree.







          share|improve this answer





















          • I used ` wget -P newDir -r "dropbox.com/sh/1eqzxexmei28ihx/AAAnjVNqUl8MJFH51j9PILf-a?dl=1"` and I does download as a directory, but it does not download the contents.
            – Julio Diaz
            Dec 13 '18 at 22:32










          • That is because the link refers to a single file. If you want to download recursively, you need a link to a page that provides links to the files you want to download.
            – RalfFriedl
            Dec 13 '18 at 22:40










          • Any idea how that could be accomplished with a Dropbox dir?
            – Julio Diaz
            Dec 13 '18 at 22:41










          • No, I don't know. You should have some page that lists all your files. Try the URL of that page.
            – RalfFriedl
            Dec 13 '18 at 22:42











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1383418%2fhow-to-force-wget-to-download-a-directory-from-dropbox%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          With the option -O you can specify only a single file, so it is not the correct option to download multiple file.




          -O file

          --output-document=file

          The documents will not be written to the appropriate files, but all will be concatenated together and written to file.




          What you need if you want to specify a directory as a target is -P:




          -P prefix

          --directory-prefix=prefix

          Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories will be saved to, i.e. the top of the retrieval tree.







          share|improve this answer





















          • I used ` wget -P newDir -r "dropbox.com/sh/1eqzxexmei28ihx/AAAnjVNqUl8MJFH51j9PILf-a?dl=1"` and I does download as a directory, but it does not download the contents.
            – Julio Diaz
            Dec 13 '18 at 22:32










          • That is because the link refers to a single file. If you want to download recursively, you need a link to a page that provides links to the files you want to download.
            – RalfFriedl
            Dec 13 '18 at 22:40










          • Any idea how that could be accomplished with a Dropbox dir?
            – Julio Diaz
            Dec 13 '18 at 22:41










          • No, I don't know. You should have some page that lists all your files. Try the URL of that page.
            – RalfFriedl
            Dec 13 '18 at 22:42
















          0














          With the option -O you can specify only a single file, so it is not the correct option to download multiple file.




          -O file

          --output-document=file

          The documents will not be written to the appropriate files, but all will be concatenated together and written to file.




          What you need if you want to specify a directory as a target is -P:




          -P prefix

          --directory-prefix=prefix

          Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories will be saved to, i.e. the top of the retrieval tree.







          share|improve this answer





















          • I used ` wget -P newDir -r "dropbox.com/sh/1eqzxexmei28ihx/AAAnjVNqUl8MJFH51j9PILf-a?dl=1"` and I does download as a directory, but it does not download the contents.
            – Julio Diaz
            Dec 13 '18 at 22:32










          • That is because the link refers to a single file. If you want to download recursively, you need a link to a page that provides links to the files you want to download.
            – RalfFriedl
            Dec 13 '18 at 22:40










          • Any idea how that could be accomplished with a Dropbox dir?
            – Julio Diaz
            Dec 13 '18 at 22:41










          • No, I don't know. You should have some page that lists all your files. Try the URL of that page.
            – RalfFriedl
            Dec 13 '18 at 22:42














          0












          0








          0






          With the option -O you can specify only a single file, so it is not the correct option to download multiple file.




          -O file

          --output-document=file

          The documents will not be written to the appropriate files, but all will be concatenated together and written to file.




          What you need if you want to specify a directory as a target is -P:




          -P prefix

          --directory-prefix=prefix

          Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories will be saved to, i.e. the top of the retrieval tree.







          share|improve this answer












          With the option -O you can specify only a single file, so it is not the correct option to download multiple file.




          -O file

          --output-document=file

          The documents will not be written to the appropriate files, but all will be concatenated together and written to file.




          What you need if you want to specify a directory as a target is -P:




          -P prefix

          --directory-prefix=prefix

          Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories will be saved to, i.e. the top of the retrieval tree.








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 13 '18 at 22:25









          RalfFriedlRalfFriedl

          1,056137




          1,056137












          • I used ` wget -P newDir -r "dropbox.com/sh/1eqzxexmei28ihx/AAAnjVNqUl8MJFH51j9PILf-a?dl=1"` and I does download as a directory, but it does not download the contents.
            – Julio Diaz
            Dec 13 '18 at 22:32










          • That is because the link refers to a single file. If you want to download recursively, you need a link to a page that provides links to the files you want to download.
            – RalfFriedl
            Dec 13 '18 at 22:40










          • Any idea how that could be accomplished with a Dropbox dir?
            – Julio Diaz
            Dec 13 '18 at 22:41










          • No, I don't know. You should have some page that lists all your files. Try the URL of that page.
            – RalfFriedl
            Dec 13 '18 at 22:42


















          • I used ` wget -P newDir -r "dropbox.com/sh/1eqzxexmei28ihx/AAAnjVNqUl8MJFH51j9PILf-a?dl=1"` and I does download as a directory, but it does not download the contents.
            – Julio Diaz
            Dec 13 '18 at 22:32










          • That is because the link refers to a single file. If you want to download recursively, you need a link to a page that provides links to the files you want to download.
            – RalfFriedl
            Dec 13 '18 at 22:40










          • Any idea how that could be accomplished with a Dropbox dir?
            – Julio Diaz
            Dec 13 '18 at 22:41










          • No, I don't know. You should have some page that lists all your files. Try the URL of that page.
            – RalfFriedl
            Dec 13 '18 at 22:42
















          I used ` wget -P newDir -r "dropbox.com/sh/1eqzxexmei28ihx/AAAnjVNqUl8MJFH51j9PILf-a?dl=1"` and I does download as a directory, but it does not download the contents.
          – Julio Diaz
          Dec 13 '18 at 22:32




          I used ` wget -P newDir -r "dropbox.com/sh/1eqzxexmei28ihx/AAAnjVNqUl8MJFH51j9PILf-a?dl=1"` and I does download as a directory, but it does not download the contents.
          – Julio Diaz
          Dec 13 '18 at 22:32












          That is because the link refers to a single file. If you want to download recursively, you need a link to a page that provides links to the files you want to download.
          – RalfFriedl
          Dec 13 '18 at 22:40




          That is because the link refers to a single file. If you want to download recursively, you need a link to a page that provides links to the files you want to download.
          – RalfFriedl
          Dec 13 '18 at 22:40












          Any idea how that could be accomplished with a Dropbox dir?
          – Julio Diaz
          Dec 13 '18 at 22:41




          Any idea how that could be accomplished with a Dropbox dir?
          – Julio Diaz
          Dec 13 '18 at 22:41












          No, I don't know. You should have some page that lists all your files. Try the URL of that page.
          – RalfFriedl
          Dec 13 '18 at 22:42




          No, I don't know. You should have some page that lists all your files. Try the URL of that page.
          – RalfFriedl
          Dec 13 '18 at 22:42


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1383418%2fhow-to-force-wget-to-download-a-directory-from-dropbox%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          Puebla de Zaragoza

          Musa