mmarcincin / HB-DRM-free-bulk-downloader

powershell script for downloading humble bundle DRM-Free files
96 stars 13 forks source link

Directory path >255 characters #9

Closed GiuseppeChillemi closed 2 years ago

GiuseppeChillemi commented 4 years ago

How, is it possible to truncate file paths >255 characters and write the untruncated path as filepath.txt ? It would help managing long paths as Windows give error managing them..

mmarcincin commented 4 years ago

I could add some additional switch which would make shorter file/folder names. There could be different identifier for the titles:

If you are dealing with the files in Windows 10 only then you could try this to enable long paths: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#enable-long-paths-in-windows-10-version-1607-and-later

mmarcincin commented 2 years ago

I updated the script to version 0.4.0. I implemented the bundle name reduction and conditional filename reduction which you can specify based on your preferences. It's part of the switches for my script which you place directly into links.txt: ~if_title-60_file-30 that means if the title name is longer than 60, it'll shorten the filename to 30. You can change the values how you'd like. (see README)

Let me know if it helped with your issue :)