bugGNU Octave - Bugs: bug #42430, @ftp/mget ignores target argument

 
 

bug #42430: @ftp/mget ignores target argument

Submitted by:  Allan Jacobs <allanjacobs>
Submitted on:  Mon 26 May 2014 04:03:12 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: allanjacobsOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 25 Nov 2015 08:14:37 PM UTC, comment #3:

Pantxo just added support for the TARGET argument to mget one week ago. See http://hg.savannah.gnu.org/hgweb/octave/rev/73800f39da6f. Marking as fixed and closing report.

Rik <rik5>
Project Administrator
Sun 27 Jul 2014 08:16:20 PM UTC, comment #2:

Looking at the code, its pretty easy to pass the 3rd argument if specified.

In the C function _ftp_mget_, in urlwrite.cc has the supporting code for the destination, but expects it to be a directory to put the files/directories.

According to MATLAB, for the same function, it is documented as a absolute local path name to put the files.

The Octave documentation says:

So should this function be following the MATLAB function, and require a change to the documentation, or changes to the code to support target filenames.

John Donoghue <lostbard>
Project Member
Fri 06 Jun 2014 01:04:01 AM UTC, comment #1:

Confirmed, the third argument is not even used in the Octave @ftp/mget function.

Mike Miller <mtmiller>
Project Administrator
Mon 26 May 2014 04:03:12 PM UTC, original submission:

mget(ftpobj,contents,target) ignores 'target.' According to Matlab documentation, this is a "string enclosed in single quotation marks that specifies the absolute or relative path of the local folder to contain the downloaded contents."

The file is downloaded into tmp/lgpl-3.0.txt and should be downloaded into tmp/junk.txt.

Allan Jacobs <allanjacobs>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by rik5
  • -unavailable- added by lostbard (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by allanjacobs (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 25 Nov 2015 08:14:37 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
      Carbon-Copy-=>Added pantxo
    Fri 06 Jun 2014 01:04:01 AM UTCmtmillerStatusNone=>Confirmed
      Operating SystemGNU/Linux=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1