MoveOut function

Hey everyone,
I had a button that I used to select folder/folders and move out all the files from within them to the containing folder.

Somehow now the same button just deletes everything, has anything changed? ( I haven't used it in a while so could be a past update )

here is the code:

@dirsonly
@nofilenamequoting
Copy MOVE FILE WHENEXISTS=rename "{filepath$}*" HERE
delete

Thanks a lot

Needs a \ before the *.

thank you very much!

I’f also recommend changing the Delete line so it only deletes things that are empty.

See Quick buttons for directory organisation for a similar command which does that.