1. file extension is changing when I download a file

file extension is changing when I download a file

Home Forums FABRIC General Questions and Discussion file extension is changing when I download a file

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9066
    Nirmala Shenoy
    Participant

      Hello

      when I download a C file from my server, to make modifications it downloads it asĀ  txt file.

       

      thanks

      Nirmala

      #9067
      Komal Thareja
      Participant

        Hi Nirmala,

        I tried an example as below and it seems to be working:

        1st parameter is the local path where file should be saved and second parameter being the remote location of the file to be downloaded.

        node.download_file('hello.c','/home/rocky/hello.c')

        Could you please share which version of fablib are you using?

        Best,

        Komal

        #9072
        Nirmala Shenoy
        Participant

          Hello Komal

          not sure where to check for the fablib version.

          We have been working on the C code for quite some time. we edit the code and upload and at times download to save the working code. This time when we download it was saving as a text file.

           

          thanks

          Nirmala

          #9073
          Nirmala Shenoy
          Participant

            hello Komal

            I am using Fablib 1.9.1

            thanks

            nirmala

            #9079
            Komal Thareja
            Participant

              This was resolved offline.

              Issue here was downloading .c code from JH container to desktop results in txt files.

              Recommended solution: Create a tar file of the entire directory and download the directory.

              Best,

              Komal

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.