xroche / httrack

HTTrack Website Copier, copy websites to your computer (Official repository)
http://www.httrack.com/
Other
3.61k stars 655 forks source link

Enhancement Request: Improve CLI Base Path Handling for Unix Path Aliases on Mac #270

Open emapeire opened 10 months ago

emapeire commented 10 months ago

Hello,

I recently encountered an issue with HTTrack's command line interface on a Mac while attempting to mirror a website. I specified the base path for the mirrored files using the common shorthand alias for the user directory ~/. Specifically, I entered the base path as ~/Workspace/Docs/. However, instead of interpreting this as an absolute path relative to my home directory, HTTrack treated it as a literal directory name. This led to the inadvertent creation of a hidden '~' folder within my current working directory on macOS. Consequently, I faced considerable confusion as I was unable to locate the downloaded content initially.

I propose an enhancement to HTTrack's CLI to accurately interpret and handle the ~/ alias, aligning it with typical Unix path conventions on macOS. Additionally, it should support absolute paths like /Users/username/websites/name-of-the-website. Implementing this improvement would significantly enhance the user experience for Mac users, especially those accustomed to using terminal shorthand for paths.

This refinement is essential for ensuring a seamless user experience and to prevent similar confusion for other macOS users in the future.

Thank you for considering this enhancement.

Best regards, Emanuel Peire