Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[Errno 36] File name too long on eCryptfs #5908
Comments
|
Post the full output of youtube-dl when run with |
|
Command:
Output:
|
|
Works perfectly for me under ext4. It's not even close to filename length limit (255). |
|
I will check the ext4 mount options. |
|
What's the length of the full path you run youtube-dl in? |
|
|
|
I mean the location where you download this file. |
|
|
|
What's the output of |
|
NAME_MAX=143 I didn't mention that my /home/user folder is encrypted with ecryptfs. I've just found the answer in this bug that will not be fixed in Ubuntu: https://bugs.launchpad.net/ecryptfs/+bug/1018050. Anyway, Should the filename be truncated? |
|
|
|
A workaround is to download in |
|
It is not only for Vimeo, but for all services. |
|
Bug is still here, running cd /tmp helped thx, but permanent fix would be very nice to have. |
|
Long path names are also a problem on Windows. Using symbolic links or juncture points is also a way to fix the issue (so you don't have to add some messy movement operation) but it makes file structures cluttered. Please add support for longer file names or have some way to truncate all or part of the string in the options. EXAMPLE
Where |
|
Since Twitter increased their char limit from 140 to 280 chars, this service is also affected when saving on eCryptfs |
|
Hello everyone! |
|
Your fork didn't fix the problem for me. |
|
@shillshocked can you provide your link which didn't work? |
|
I have also recently been experiencing this with Twitter video sources. MacOS 10.14.6, downloading to |
|
I want to just automatically truncate long filenames. |
|
this doesnt' work: |
|
@chovy This output format fixes it:
Replace the 100 with whatever you want, a character limit of 220 works good for me on Windows. This still should be implemented in to youtube-dl, though. |
|
I think the limit depends not on the number of characters, but on the number of bytes. echo -n "one" | wc --bytes # 3
# not latin characters
echo -n "раз" | wc --bytes # 6In my case(Linux), the limit is 255 bytes for the entire path(filename). |
|
Issue is also due to Unicode Support angle. :) Steps:
Output am wondering, if these could help...
|
|
+1 for automatic truncating |
|
This issue affects a large number of twitter videos as youtube-dl attempts to use the full tweet as the filename. EXT4, NTFS, and HFS support only 255 characters per filename, but the current max-tweet is 280 characters. Truncating filenames to 255 characters (including extension) should fix "File name too long" in all conceivable use cases. |
Filesystem: EXT4
OS: Ubuntu Linux 14.04 LTS
youtube-dl --version: 2015.06.04.1When I try to download a Vimeo video:
youtube-dl --ignore-errors --restrict-filenames https://vimeo.com/80352108I got the following error:
ERROR: unable to open for writing: [Errno 36] File name too long: ...