In addition to the other comments… These functions transverse the target subdirectories and try to copy/move files into themselves, which just won’t work but is a waste of time and you’re gonna see these errors. Just skip them like so
find . -path ~/png -prune -o -iname "*.png" -exec ...Nothing says “I don’t care about my data.” more than the examples in the screenshot.
What happens when two different files in different directions have the same name?
I guess the LLM didn’t consider that.
I’m more upset by the idea of grouping your images by format and then splitting jpeg into two groups depending on which extension is used
Why you moving the jpg / jpeg files but everything else is copied?
May I interest you in the program I just wrote. I think you might like the subcommand
type.I use it to automatically copy mime types “video” and extensions “.srt” from the Torrent folder to the jellyfin folder. The other two subcommands, I use them to save user dotfiles and system config files on git
If you’re just trying to have a central location to find them you’d be better off symlinking them and making another macro that removes dead links.




