server icon indicating copy to clipboard operation
server copied to clipboard

refactor(setup): improve htaccess update handling and code clarity

Open joshtrichards opened this issue 1 month ago • 0 comments

  • Resolves: #

Summary

Optimize the .htaccess and data-dir protection update handling and make more defensive.

  • idempotent now: only update main .htaccess file when the generated block actually changes
  • centralized probe bypass logic in isHtaccessWorking
  • made read/write/existence checks/error detection a bit more robust/thorough
  • low disk space guard now covers entire file body
  • additional clarifying docblocks/comments

TODO

  • [ ] ...

Checklist

joshtrichards avatar Dec 04 '25 18:12 joshtrichards