[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42426] Ftp mget with directory arg gets error
From: |
Allan Jacobs |
Subject: |
[Octave-bug-tracker] [bug #42426] Ftp mget with directory arg gets error message and does not download directory contents |
Date: |
Mon, 26 May 2014 00:56:28 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 |
URL:
<http://savannah.gnu.org/bugs/?42426>
Summary: Ftp mget with directory arg gets error message and
does not download directory contents
Project: GNU Octave
Submitted by: allanjacobs
Submitted on: Mon 26 May 2014 12:56:28 AM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name: allanjacobs
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
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.
f=ftp('ftp.gnu.org','anonymous','address@hidden')
cd(f,'/gnu')
cd('tmp')
ascii(f)
mget(f,'Licenses')
The error message reads:
error: __ftp_mget__: FTP: couldn't retrieve (RETR failed) the specified file
error: called from:
error: /usr/local/share/octave/4.1.0+/m/@ftp/mget.m at line 36, column 3
The directory is created:
% ls -lR tmp/Licenses
Licenses:
total 0
$ hg summary
parent: 18781:888f8ce79bbe tip
maint: Periodic merge gui-release -> default.
branch: default
bookmarks: *@
commit: 7477 unknown (clean)
update: (current)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42426>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #42426] Ftp mget with directory arg gets error message and does not download directory contents,
Allan Jacobs <=