fix: create_required_folders removes symlink to gcodes #450

Open
opened 2024-03-14 10:09:59 +01:00 by boecko · 0 comments
boecko commented 2024-03-14 10:09:59 +01:00 (Migrated from github.com)

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

  • make ~/printer_data/gcodes as symlink
  • install something
  • check ~/printer_data/gcodes

Additional information

No response

### 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 ```bash 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 * make ~/printer_data/gcodes as symlink * install something * check ~/printer_data/gcodes ### Additional information _No response_
Sign in to join this conversation.