r0oth3x49 / acloud-dl

A cross-platform python based utility to download courses from acloud.guru for personal offline use.
MIT License
350 stars 141 forks source link

Error while dowloading: File name too long #85

Closed arfatshaikh closed 2 years ago

arfatshaikh commented 2 years ago

File "/mnt/hgfs/Shared-VM/ACG/acloud-dl/acloud/_shared.py", line 769, in _write_external_links with open("{}".format(filename), "a", encoding="utf-8") as f: OSError: [Errno 36] File name too long: '/mnt/hgfs/Shared-VM/ACG/Courses//Google Professional Cloud DevOps Engineer Certification Path Introduction (GCP DevOps Engineer Track Part 1)/05 The Road Ahead/001 After That Monitoring Managing and Maximizing Google Cloud Operations (GCP DevOps Engineer Track Part 4).txt'

r0oth3x49 commented 2 years ago

@arfatshaikh if you are on windows 10 you can disable path limit by following powershell commad:

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force

and then try to download.

the other solution is you should download the courses to shortest path for example: /mnt/*