I'm trying to download a file with wget and choose the output filename instead of using the long URL as the filename. I ran `wget -O ~/Downloads/file.flatpak "https://website.com/file-get.py?ident=superlongstringofcharacters&file=morebullshit.flatpak&evenmore=bullshit"`, but wget returned `/home/user/Downloads/file.flatpak: No such file or directory`. I assumed wget would create the Downloads folder if it didn't already exist. What am I doing wrong?
1 Answer
wget will create the output file, but it won’t create missing parent directories. Make sure `/home/user/Downloads` already exists. Also, directory names are case-sensitive, so `Downloads` and `downloads` are different.

That was it—the Downloads folder didn’t exist. I created it and the command worked. Thanks!