bugGNU Octave - Bugs: bug #42426, Ftp mget with directory arg gets...

 
 

bug #42426: Ftp mget with directory arg gets error message and does not download directory contents

Submitted by:  Allan Jacobs <allanjacobs>
Submitted on:  Mon 26 May 2014 12:56:28 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: allanjacobsOpen/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 06 Jun 2014 01:21:54 AM UTC, comment #1:

Confirmed. This error also puts the ftp handle into a very bad state, such that a subsequent

results in a segfault as shown.

Are you saying it's unclear whether mget should just "download" the directory, or make the directory and include its contents, or download recursively?

Mike Miller <mtmiller>
Project Administrator
Mon 26 May 2014 12:56:28 AM UTC, original submission:

The ftp function mget is supposed to be able to take a directory argument. When used, the directory is created in the local directory. No files from that directory are downloaded). The download is accompanied by an error message.

When ftp is run from the OS command line, mget <dirname> responds by prompting the user whether or not she wants to download each of the contents of <dirname>. If the directory actually pre-exists locally, the download succeeds. If the directory does not yet exist locally, the local directory is NOT created.

In octave, the directory is created if it does not already exist. With respect to the files in the directory, the behavior of mget(f,DIRNAME) is the same whether or not the local directory exists: the files are NOT copied.

It is not clear what the behavior should be inside Octave w/r to the files in the remote directory.

The error message reads:

The directory is created:

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 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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 06 Jun 2014 01:21:54 AM UTCmtmillerItem GroupOther=>Matlab Compatibility
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1