The issue is not efficiency. I would simply like aria2c to be able to handle such an URI gracefully -- say, by calling cp --, instead of aborting with an error. This is merely a matter of convience. It's nice to be able to pass any kind of URI to aria2c, and to know that it's going to do something useful with it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It might be good for aria2 to handle any kind of URIs.
But at the moment I think aria2 is a program to download files form net and just copying files around is not its responsibility.
I leave this thread open: maybe in the future when aria2 becomes generic file manipulation tool, like curl does today, then supporting file scheme makes sense. But I have no plan to move aria2 toward that direction for the time being.
BTW, if you want to feed aria2 a local torrent file, you can do this:
aria2c /path/to/file.torrent
I think it would be good to support file URI scheme for that:
aria2c file:///path/to/file.torrent
Currently, this is not supported and aria2 emits error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think just using cp command is far more efficient for copying files.
The issue is not efficiency. I would simply like aria2c to be able to handle such an URI gracefully -- say, by calling cp --, instead of aborting with an error. This is merely a matter of convience. It's nice to be able to pass any kind of URI to aria2c, and to know that it's going to do something useful with it.
It might be good for aria2 to handle any kind of URIs.
But at the moment I think aria2 is a program to download files form net and just copying files around is not its responsibility.
I leave this thread open: maybe in the future when aria2 becomes generic file manipulation tool, like curl does today, then supporting file scheme makes sense. But I have no plan to move aria2 toward that direction for the time being.
BTW, if you want to feed aria2 a local torrent file, you can do this:
aria2c /path/to/file.torrent
I think it would be good to support file URI scheme for that:
aria2c file:///path/to/file.torrent
Currently, this is not supported and aria2 emits error.