-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Allow specifying output directory #1185
Allow specifying output directory #1185
Conversation
I really like this option. My question, why |
It would complicate the code too much in my opinion. Simply changing the working directory is very easy and works just fine. |
I tested it on Linux and it works fine. When I specify a folder without permission, I get a Would it be possible to create a folder, if the folder does not yet exists? |
Yeah like that if not os.path.isdir(arguments.path):
os.makedirs(arguments.path)
print("Created download folder") |
Also, maybe we should come back to the starting path after finishing the download |
Good to know, I'll see what I can do there.
I think it would make sense. Not sure, however, if we should accept any path and use
I don't see a reason to do that. The |
Oh ok my bad |
@aklajnert Do you want to do anything or is this ready to merge? |
@Silverarmor - I'm considering @xnetcat suggestion about creating the output directory if it doesn't exist. I'm not really sure if that's a good idea at all, and if I should create multiple nested directories or limit to one only. |
@aklajnert think we can sneak this into v3.4.0 ? |
@Silverarmor - Yeah, I guess we can merge it as is, we'll change the output directory behavior in case of feedback, |
@aklajnert @MikhailZex what happened to these changes 🤔 |
This is a very small change that'll allow specifying the output directory by specifying
-o
or--output
argument.Some users were asking for it, and I find it also useful to me.