mirror of https://github.com/aria2/aria2
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Throw exception if file path doesn't exist in FTP URL. * src/InitiateConnectionCommandFactory.ccpull/1/head
parent
63735eab8e
commit
130f830091
|
@ -1,3 +1,8 @@
|
|||
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Throw exception if file path doesn't exist in FTP URL.
|
||||
* src/InitiateConnectionCommandFactory.cc
|
||||
|
||||
2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Refactored BitfieldMan::getSparseMissingUnusedIndex()
|
||||
|
|
|
@ -72,6 +72,11 @@ InitiateConnectionCommandFactory::createInitiateConnectionCommand
|
|||
return
|
||||
new HttpInitiateConnectionCommand(cuid, req, fileEntry, requestGroup, e);
|
||||
} else if(req->getProtocol() == Request::PROTO_FTP) {
|
||||
if(req->getFile().empty()) {
|
||||
throw DL_ABORT_EX
|
||||
(StringFormat("FTP URL %s doesn't contain file path.",
|
||||
req->getUrl().c_str()).str());
|
||||
}
|
||||
return
|
||||
new FtpInitiateConnectionCommand(cuid, req, fileEntry, requestGroup, e);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue