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

LONG FILE NAME _shared.py #113

Open outtycast opened 1 year ago

outtycast commented 1 year ago

**I've make this patch for long file names in _shared.py.

sometimes the path longfile names mod is already present and it doubles it causing an exception**

` def _write_external_links(self, filepath): retVal = {} filename = filepath if os.name == "nt":

If the absolute path to the file is too long, append the magic prefix

        if len(os.path.abspath(filename)) > 255:
            if "\\\\?\\" not in filename:
                filename = u"\\\\?\\%s" % (os.path.abspath(filename))

`

khamid1612 commented 1 year ago

114 try this

MistFenix commented 10 months ago

114 try this

Not working for me what you did