Tut-k0 / htb-academy-to-md

Simple CLI program that will fetch and convert a HackTheBox Academy module into a local file in Markdown format.
28 stars 3 forks source link

/ in module name causes issue #2

Closed TectonicKestrel closed 7 months ago

TectonicKestrel commented 7 months ago

When there is a / (forward slash) in the module name it causes an issue as they are not allowed in a filename. For example, this module https://academy.hackthebox.com/module/226/section/2419 gives the error open Working with IDS/IPS.md: The system cannot find the path specified. Substituting / for a - (hyphen) would probably work best. I dont know go language so dont know how easy this is to implement.

I am trying this on Windows, I havent tried using this on Linux.