FormerLurker / ArcWelderPlugin

A plugin for OctoPrint used to convert G0/G1 commands to G2/G3 commands. Reduce the size of your gcode files, and reduce number of gcodes per second sent to your printer.
Other
444 stars 25 forks source link

Prefixing files with a folder causes continuous recursive arc-welding on newly generated files #258

Open tomelm opened 1 year ago

tomelm commented 1 year ago

Hi! I was trying to have arc welder put all newly generated files into a folder (instead of having them be in the same one).

In settings, I put a prefix of aw/ which correctly puts the files in a newly generated folder. However if I have automatic on, it detects a new file and then runs arc welder on it again, which creates a new aw/ folder (within the aw/ folder). This seems to happen recursively so that I end up with aw/aw/aw/.../file unless I stop it. For now I've disabled automatic mode (everything works great with just manual).

numericOverflow commented 1 year ago

I wonder if this is related to the same root issue that I'm having here: #259 - Arcwelder script gets run on files when moved (not just at upload)

It would make sense that every time the new subfolder file is generated, the script is getting run the same way I encounter when simply moving a file from one folder to another. Somehow the script execution is attached to a "file create hook" and not an "upload hook" (if that is such a thing, I'm just speculating...)