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

Strip leading dots from file names #2865

Closed
canavan opened this issue May 7, 2014 · 2 comments
Closed

Strip leading dots from file names #2865

canavan opened this issue May 7, 2014 · 2 comments
Labels

Comments

@canavan
Copy link

@canavan canavan commented May 7, 2014

Any leading dots should be stripped off the file name, otherwise, the file is considered "hidden" by most tools, such as "ls".

Similar arguments could be made for removing leading '-' (minus signs), since such filenames require a preceeding -- or must be prefixed with e.g. './' or the filename will be interpreted as an option, not a filename.

$ youtube-dl --verbose M_azYJCx4vI
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'M_azYJCx4vI']
[debug] Encodings: locale ISO8859-1, fs ISO8859-1, out ISO8859-1, pref ISO8859-1
[debug] youtube-dl version 2014.05.05
[debug] Python version 2.7.6 - IRIX64-6.5-IP35-mips-n32bit-ELF
[debug] Proxy map: {}
[youtube] Setting language
[youtube] M_azYJCx4vI: Downloading webpage
[youtube] M_azYJCx4vI: Downloading video info webpage
[youtube] M_azYJCx4vI: Extracting video information
[download] Destination: .Melbourne Comedy Festival Gala 2014 ronny chieng-M_azYJCx4vI.mp4
[download] 100% of 11.76MiB in 00:18
$ ls *.mp4
ls: cannot access *.mp4: No such file or directory

@phihag
Copy link
Contributor

@phihag phihag commented Mar 3, 2015

I believe this issue to be fixed in youtube-dl 2015.03.03 and newer. See our FAQ if you need help updating.

@canavan
Copy link
Author

@canavan canavan commented Mar 3, 2015

It is indeed fixed, Thanks!

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.