Page 1 of 1

FlatView and SyncSelect Newer

Posted: 06 Dec 2011 22:36
by fishgod
Hello,

I've experiencing some strange Behavior with the Sync Select feature.

I was comparing two folders, 1st Pane: local folder, 2nd Pane: Same folder on differnt Device via SMB
Both Panes are shown in FlatView. Each Pane was showing ~13000 items.

When I now use the SyncSelect : Newer / Uniques and Newer command, some files get selected with actually have the same date and time.
The Date and Time shown in XY and Windows-Explorer are exactly the same for the file on both devices (for Created, Modified and Accessed).
The files are also exactly the same in size and content (xy-compare-function)

The strange part is, that there seems to be no regularity in what files are getting falsely selected.
Round about 2500 files out of the ~13000 files get selected.
Sometimes all files in a folder, and none for other folders, but somtimes also single files in folders...

The good thing is that going to a folder with a file in it (which gets falsely selected) on both panes
with FlatView off, doesn't reproduce the selection bug when using SyncSelect : Newer.
So it seem so be somehow related to FlatView

I'am using XY v10.60.0117 on Win7 x64



And a few things in general to the SyncSelect-Feature:

Minor Issue:
In my task it took 20sec for the selection... (ok, its a big folder and it's on the network...)
But there could be some user-featback, that the app is working... On the first attemt, I thought XY may have crashed
(Could be in the Status-bar... like when searching)

GUI-Development:
I saw in the Scripting-Help that you can add and remove from current selection and wondert where the GUI for that is.
Looking up in the Help-File it says using CTRL or SHIFT while clicking the OK-Button will do it.
OK, the good thing is, it is fully documented. (You even inserted a InfoTipp to the Button, ThumbUp)
But the bad thing is that holding down CTRL/SHIFT while clicking on OK is really unintuitive and I think I havent seen something like that in other applications.
Besides: We have the same thing with resetting the Background-Color for Tags. I've really searched long, the days Tags where new, to figure out how to reset the background...
Why not just add somthing like a Label "Current Selection" and a DropDown or 3 Radio-Buttons with the entries "Drop", "add Matches" and "remove Matches"? Please tell me one good reason :D

Last but not Least:
FlatView + SyncSelect is really a killer-feature and using XY every day is really a pleasure to me :)

Re: FlatView and SyncSelect Newer

Posted: 06 Dec 2011 22:51
by fishgod
OK, I think I figured out what happens:

I was comparing my Photo-Folder between PC and Latop and a filenames like IMAG0193.JPG
simply exists multiple times on the other pane.

So we maybe need an additional Flag with the SyncSelect-function which enshures path-equallity (inside the FlatView-root) for compared files when using FlatView.
Will this be possible?

Re: FlatView and SyncSelect Newer

Posted: 07 Dec 2011 16:12
by admin
fishgod wrote:So we maybe need an additional Flag with the SyncSelect-function which enshures path-equallity (inside the FlatView-root) for compared files when using FlatView.
Will this be possible?
OK, I will check that later.

Re: FlatView and SyncSelect Newer

Posted: 07 Dec 2011 16:24
by admin
OK, I have to admit that I personally never use sync select (I never became dual paner), so I don't really know what is expected.

Question: Are you sure that taking the relative flat view paths into account is always desired by every user?

Re: FlatView and SyncSelect Newer

Posted: 07 Dec 2011 17:01
by TheQwerty
admin wrote:Question: Are you sure that taking the relative flat view paths into account is always desired by every user?
I'm not sure, but I'll throw my "seems logical" hat into the "desired by" circle.

It's still not perfect and I have one thought to make it better but it's rather complicated, would be difficult to code, slow to run, would only get you closer to perfection without achieving it, and I imagine the "desired by" and "not desired by" circles would be closer in size making its behavior more controversial.

Re: FlatView and SyncSelect Newer

Posted: 07 Dec 2011 19:29
by fishgod
admin wrote:Question: Are you sure that taking the relative flat view paths into account is always desired by every user?
Might not *allways* be the usecase. I can image a case where I want to merge two folders with differnt structure but uniqe filename.
There I would like to compare the FlatView without taking the pathes into account. Thats why I said this could be optional.

Adding a checkbox (like: [ ] respect relative Pathes in FlatView) to the SyncSelect-Dialog would be totaly fine in my eyes.
Or exactly the oposite if the more common task should be to use pathes and disable it via Checkbox, your decision...

Re: FlatView and SyncSelect Newer

Posted: 07 Dec 2011 20:27
by admin
fishgod wrote:
admin wrote:Question: Are you sure that taking the relative flat view paths into account is always desired by every user?
Might not *allways* be the usecase. I can image a case where I want to merge two folders with differnt structure but uniqe filename.
There I would like to compare the FlatView without taking the pathes into account. Thats why I said this could be optional.

Adding a checkbox (like: [ ] respect relative Pathes in FlatView) to the SyncSelect-Dialog would be totaly fine in my eyes.
Or exactly the oposite if the more common task should be to use pathes and disable it via Checkbox, your decision...
OK.

Would an array of 3 choices work?:
1. Normal
2. Ignore extensions
3. Respect relative paths

Or would we also need the combination "Ignore extensions" AND "Respect relative paths"??

Re: FlatView and SyncSelect Newer

Posted: 07 Dec 2011 20:57
by admin
OK, could not wait, made my decisions: I (for now) hard-coded it to respect the relative paths if both lists are in Find mode (which includes Flat View). Works nicely. :)

EDIT: made it a tweak.

Re: FlatView and SyncSelect Newer

Posted: 07 Dec 2011 21:20
by admin
BTW, conc. the speed of SyncSelect: each file is compared with each file of the other list. So the time increases with the product of the sizes of the lists.

Re: FlatView and SyncSelect Newer

Posted: 07 Dec 2011 23:43
by fishgod
admin wrote:BTW, conc. the speed of SyncSelect: each file is compared with each file of the other list. So the time increases with the product of the sizes of the lists.
I kind of thoght that...
Technically you can get a better time-complexity than n² for n items. By using a Heap-Sort you should at least get n*log(n)...

But I wasn't complaning about the speed, I perceive that my huge folder over the network can't be that fast, the thing is that XY could do a little user-featback. When using the search, the statusbar shows how many items are gound until now and such stuff, instead of just blocking the app until the process is finished. It's more a general thing for every process that takes up over a few seconds without showing the user that the app is allright and just need time to work...

Re: FlatView and SyncSelect Newer

Posted: 08 Dec 2011 08:59
by admin
Speed: Yes, I might add something later.

And what about the new tweak? Works as expected? Should it be the factory default? Should it be raised to GUI level?

Re: FlatView and SyncSelect Newer

Posted: 09 Dec 2011 20:07
by admin
admin wrote:Speed: Yes, I might add something later.

And what about the new tweak? Works as expected? Should it be the factory default? Should it be raised to GUI level?
fishgod, speak to me...