- This topic has 4 replies, 2 voices, and was last updated 1 day, 18 hours ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forums › FABRIC General Questions and Discussion › file extension is changing when I download a file
Hello
when I download a C file from my server, to make modifications it downloads it asĀ txt file.
thanks
Nirmala
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
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
hello Komal
I am using Fablib 1.9.1
thanks
nirmala
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