Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aria2c treats absolute paths as if they were relative #684

Closed
gatl opened this issue Jun 18, 2016 · 4 comments
Closed

Aria2c treats absolute paths as if they were relative #684

gatl opened this issue Jun 18, 2016 · 4 comments

Comments

@gatl
Copy link

gatl commented Jun 18, 2016

When downloading an URL using the -o option referring to an absolute path, aria2c always assumes that the path provided is a relative path, and merges it with the current working directory.

Thus, if I tell it aria2c -o /index.html http://example.com/index.html, it will save it to $PWD//index.html and not to /index.html which was what I expected.

In the man page I found no indication that this may be intended behaviour.

Here is some information that may be relevant, from aria2c --version:

aria2 version 1.24.0
(...)
** Configuration **
Enabled Features: Async DNS, BitTorrent, Firefox3 Cookie, GZip, HTTPS, Message Digest, Metalink, XML-RPC, SFTP
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5, adler32
Libraries: zlib/1.2.8 libxml2/2.9.4 sqlite3/3.13.0 GnuTLS/3.4.13 nettle GMP/6.1.0 c-ares/1.11.0 libssh2/1.7.0
Compiler: gcc 6.1.1 20160602
  built by   x86_64-pc-linux-gnu
  on         Jun 15 2016 13:18:23
System: Linux 4.6.2-1-ARCH #1 SMP PREEMPT Wed Jun 8 08:40:59 CEST 2016 x86_64
@tatsuhiro-t
Copy link
Collaborator

It is by design. -o is always relative to the directory given in --dir. We'll add new some text to manual page to describe this.

@gatl
Copy link
Author

gatl commented Jun 19, 2016

I see. Thank you for the information. I guess that if I add -d / I can get the behaviour I was expecting.

@gatl gatl closed this as completed Jun 19, 2016
@tatsuhiro-t
Copy link
Collaborator

Thank you for comments. Due to task management for upcoming v1.25.0, I keep open this issue until we document the current behaviour of --out and -d option.

@tatsuhiro-t tatsuhiro-t reopened this Jun 20, 2016
@tatsuhiro-t
Copy link
Collaborator

Fix committed via 2365c91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants