ArcWelderPlugin icon indicating copy to clipboard operation
ArcWelderPlugin copied to clipboard

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

Open tomelm opened this issue 1 year ago • 1 comments

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).

tomelm avatar Jun 17 '23 17:06 tomelm

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...)

numericOverflow avatar Sep 08 '23 23:09 numericOverflow