mirror of https://github.com/aria2/aria2
We already replaced "-" with DEV_STDIN in LocalFilePathOptionHandler
parent
380e5aa451
commit
d0a0645836
|
@ -525,17 +525,14 @@ bool createRequestGroupFromUriListParser(
|
||||||
std::shared_ptr<UriListParser> openUriListParser(const std::string& filename)
|
std::shared_ptr<UriListParser> openUriListParser(const std::string& filename)
|
||||||
{
|
{
|
||||||
std::string listPath;
|
std::string listPath;
|
||||||
if (filename == "-") {
|
|
||||||
listPath = DEV_STDIN;
|
auto f = File(filename);
|
||||||
}
|
if (!f.exists() || f.isDir()) {
|
||||||
else {
|
throw DL_ABORT_EX(fmt(EX_FILE_OPEN, filename.c_str(),
|
||||||
auto f = File(filename);
|
"File not found or it is a directory"));
|
||||||
if (!f.exists() || f.isDir()) {
|
|
||||||
throw DL_ABORT_EX(fmt(EX_FILE_OPEN, filename.c_str(),
|
|
||||||
"File not found or it is a directory"));
|
|
||||||
}
|
|
||||||
listPath = filename;
|
|
||||||
}
|
}
|
||||||
|
listPath = filename;
|
||||||
|
|
||||||
return std::make_shared<UriListParser>(listPath);
|
return std::make_shared<UriListParser>(listPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue