mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 10:55:00 +00:00
Allow block device file to -i option
This commit is contained in:
@@ -529,8 +529,10 @@ std::shared_ptr<UriListParser> openUriListParser(const std::string& filename)
|
||||
listPath = DEV_STDIN;
|
||||
}
|
||||
else {
|
||||
if (!File(filename).isFile()) {
|
||||
throw DL_ABORT_EX(fmt(EX_FILE_OPEN, filename.c_str(), "No such file"));
|
||||
auto f = File(filename);
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user