yoonwaiyan / stackskills-dl

Simple Ruby script to download all StackSkills tutorials.
https://yoonwaiyan.github.io/stackskills-dl/
MIT License
59 stars 19 forks source link

File Name too Long #46

Closed itsbkm closed 5 years ago

itsbkm commented 5 years ago

/usr/lib/ruby/2.3.0/fileutils.rb:253:in mkdir': File name too long @ dir_s_mkdir - 04. Class_#4-_VC_Part_2-_Security-Legal_Structures_to_Protect_You_+_Make_You_More_$_-Due_diligence_and_how_to_assess_a_management_team._Security_structures._Legal_information_to_help_protect_you_and_your_investments-company._Venture_capital_history_is_very_important_to_understand.Due_diligence_and_how_to_assess_a_management_team._Security_structures._Legal_information_to_help_protect_you_and_your_investments-company._Venture_capital_history_is_very_important_to_understand-. (Errno::ENAMETOOLONG) from /usr/lib/ruby/2.3.0/fileutils.rb:253:infu_mkdir' from /usr/lib/ruby/2.3.0/fileutils.rb:227:in block (2 levels) in mkdir_p' from /usr/lib/ruby/2.3.0/fileutils.rb:225:inreverse_each' from /usr/lib/ruby/2.3.0/fileutils.rb:225:in block in mkdir_p' from /usr/lib/ruby/2.3.0/fileutils.rb:211:ineach' from /usr/lib/ruby/2.3.0/fileutils.rb:211:in mkdir_p' from /stackskills-dl-master/lib/utilities.rb:11:inmkchdir' from /stackskills-dl-master/lib/lecture.rb:40:in download' from /stackskills-dl-master/lib/course.rb:24:inblock (2 levels) in download' from /stackskills-dl-master/lib/course.rb:23:in each' from /stackskills-dl-master/lib/course.rb:23:inblock in download' from /stackskills-dl-master/lib/utilities.rb:13:in block in mkchdir' from /stackskills-dl-master/lib/utilities.rb:12:inchdir' from /stackskills-dl-master/lib/utilities.rb:12:in mkchdir' from /stackskills-dl-master/lib/course.rb:22:indownload' from /stackskills-dl-master/lib/course_finder.rb:13:in block (2 levels) in run' from /stackskills-dl-master/lib/course_finder.rb:41:inblock in execute' from /stackskills-dl-master/lib/course_finder.rb:36:in each' from /stackskills-dl-master/lib/course_finder.rb:36:inexecute' from /stackskills-dl-master/lib/course_finder.rb:12:in block in run' from /stackskills-dl-master/lib/utilities.rb:13:inblock in mkchdir' from /stackskills-dl-master/lib/utilities.rb:12:in chdir' from /stackskills-dl-master/lib/utilities.rb:12:inmkchdir' from /stackskills-dl-master/lib/course_finder.rb:11:in run' from stackskills_dl.rb:11:in

'

yoonwaiyan commented 5 years ago

Hi, thanks for reporting. May I know what's the title for this lecture, and is this course free to access so that I can debug on my side?

itsbkm commented 5 years ago

It is not free to access

title is Class #4: VC Part 2: Security/Legal Structures to Protect You + Make You More $ (Due diligence and how to assess a management team. Security structures. Legal information to help protect you and your investments/company. Venture capital history is very important to understand.Due diligence and how to assess a management team. Security structures. Legal information to help protect you and your investments/company. Venture capital history is very important to understand).

On Thu, Mar 21, 2019 at 2:49 PM Yoon Wai Yan notifications@github.com wrote:

Hi, thanks for reporting. May I know what's the title for this lecture, and is this course free to access so that I can debug on my side?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yoonwaiyan/stackskills-dl/issues/46#issuecomment-475158570, or mute the thread https://github.com/notifications/unsubscribe-auth/ARFJ_cTgKbmWHJHBH8BNOxdqiDXIMdXtks5vY067gaJpZM4cADvt .

dcous commented 5 years ago

Truncating the course section name corrects this. In course_sections.rb change line 13 to: "%02d" % index + ". #{name.slice(0,250)}" It's only Class #4 in that course that has the excessive section name, Class #1 just slips under the 256 character maximum.

itsbkm commented 5 years ago

Thanks this solved the issue