I have found that some files are containing spaces and I would like to be able to download them. The files look something like TestFile for yyyy-mm-dd hh-mm-ss-nnnn.txt in commandline I can simply put double quotes around this. I tried to accomplish this in the
fname = "./TestFile for yyyy-mm-dd hh-mm-ss-nnnn.txt";
osftp.get("\"" + fname + "\"", localpath);
this gives the same error, any recommendations on how to download these files?
I addressed the issue, it seems that you cannot use the ./ with the file name if this is where your connect you must either use the full path or the partial path already counting the folder you log into. So these seem to work.
File in home(logged into directory)
/home/file.txt
file.txt
File in subdirector in home (logged into direcotry)
/home/text/file.txt
text/file.txt
We cannot use the ./ or ../../ to cause navigation is what I have found.