problem with move up from search list

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: problem with move up from search list

Post by admin »

OK, the clock/dolly/heater example is simple. But what if folders AND some of their childs are included in the job AND there are name collisions? I don't have the time to look at Flux's script, but does it handle more complex selection patterns?

You know, moving up only one item can already be a surprisingly complex job. I worked about a week on this some years ago. The danger here is undesired overwrites due to collisions.

kiwichick
Posts: 742
Joined: 08 Aug 2012 04:14
Location: Pahiatua, New Zealand

Re: problem with move up from search list

Post by kiwichick »

admin wrote:OK, the clock/dolly/heater example is simple. But what if folders AND some of their childs are included in the job AND there are name collisions? I don't have the time to look at Flux's script, but does it handle more complex selection patterns?
I have no idea, Don. I didn't try anything more complicated than what I posted. That's really the only scenario I use. I wouldn't be moving things from different levels or like-named files into the same folder.

If there ever is some way to incorporate this into XY maybe it could work like Rich Copy or Tag Copy where MoveUp from search or branch could trigger a prompt to MoveUp from item location or search location.
Windows 10 Pro 22H2
Scaling 150%

admin
Site Admin
Posts: 67282
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: problem with move up from search list

Post by admin »

Made some tests. The possible side effects are too complex. Sorry.

kiwichick
Posts: 742
Joined: 08 Aug 2012 04:14
Location: Pahiatua, New Zealand

Re: problem with move up from search list

Post by kiwichick »

All good, Don. Thanks for taking a look anyway :-)
Windows 10 Pro 22H2
Scaling 150%

FluxTorpedoe
Posts: 906
Joined: 05 Oct 2011 13:15

Re: problem with move up from search list

Post by FluxTorpedoe »

All good here too... :)

Though just to let you know, the simplistic script just gathers each item's parent folder name and moves them there one by one, that's it!
All the rest (collision management...) being left to XYcopy/Wincopy which logically warn of possible overlaps when necessary.

Never encountered a problem (well, notwithstanding the previous script shortcoming with getpathcomponent()).

Anyway, I just slightly changed the script to only move files that haven't already been moved.
e.g. if folders AND their content are selected to "Power Move Up", the script doesn't try to move the content anymore (less user interaction).

Have a nice day, 8)
Flux

kiwichick
Posts: 742
Joined: 08 Aug 2012 04:14
Location: Pahiatua, New Zealand

Re: problem with move up from search list

Post by kiwichick »

Cheers :biggrin:
Windows 10 Pro 22H2
Scaling 150%

Post Reply