dw-0 / kiauh

Klipper Installation And Update Helper
GNU General Public License v3.0
3.09k stars 452 forks source link

fix: create_required_folders removes symlink to gcodes #450

Open boecko opened 3 months ago

boecko commented 3 months ago

Linux Distribution

Raspbian GNU/Linux 12 (bookworm)

What happened

I'm managing my printfiles on my nextcloud-folder. ~/printer_data/gcodes -> /home/pi/Nextcloud/printer_data/gcodes This is folder is automatically synced via cron by issuing following command

nextcloudcmd   -n -s \
               --path 3dprint \
               ~/Nextcloud \
               https://nextcloud.example.com 

After installing moonraker-telegram-bot via your awesome script i've notices that my gcode files weren't available in telegram or fluidd. Turned out that create_required_folders replaced my symlink gcodes -> /home/pi/Nextcloud/printer_data/gcodes with an empty directory.

What did you expect to happen

The symlink shouldn't be touched. ~/printer_data/gcodes -> /home/pi/Nextcloud/printer_data/gcodes

How to reproduce

Additional information

No response