Page 1 of 1

Slippery directories

Posted: Sat Jun 25, 2022 8:46 am
by MSpagni
Now, when a directory becomes empty after a deletion, the directory itlsef shifts at the bottom of the list.

In a case, after a deletion, a copy and a recompare (more on this once I have replicated the exact sequence) in the list I had both the directory (this usually means it's empty) and its content. I deleted the "empty directory" and all its content was silently erased on disk but didn't disappear from the list. Indeed, clicking on it I got the message "unreachable file" :wink:.

Re: Slippery directories

Posted: Sun Jun 26, 2022 1:09 pm
by psguru
I probably somewhat understand the problem but could you describe it in steps, preferably with a small zipped example attached?

Re: Slippery directories

Posted: Mon Jun 27, 2022 2:32 am
by JeremyNicoll
MSpagni wrote: Sat Jun 25, 2022 8:46 am Now, when a directory becomes empty after a deletion, the directory itlsef shifts at the bottom of the list.
Does that depend on how the list is sorted?

Re: Slippery directories

Posted: Mon Jun 27, 2022 9:53 am
by MSpagni
JeremyNicoll wrote: Mon Jun 27, 2022 2:32 am Does that depend on how the list is sorted?
Of course.
But I almost always sort the directories on relative path and I didn't change it lately (or at least I don't remember having done it) and anyway now I double checked the sorting mode is that.

Recipe:
  • compare two directories with subdirs (it doesn't matter if the subdirs match or not);
  • delete all the subdir content in one of the pane;
  • pronto: the now empty directory is at bottom!
  • just recompare: the empty directory goes back at the right place.

Re: Slippery directories

Posted: Mon Jun 27, 2022 9:59 am
by psguru
Just to confirm: so you issue is that the newly shown empty directory initially appears in the wrong place? If so, I will argue that sorting of all items to place the newly shown empty directory in the right place is an unnecessary waste of time.

Re: Slippery directories

Posted: Mon Jun 27, 2022 10:29 am
by MSpagni
Well, to begin with: it wasn't so up to not so many versions ago.
Then, no need to sort again: the directory position is exactly the same of the removed files!
The unnecessary waste of time is exactly to have to recompare (and resort).

Re: Slippery directories

Posted: Mon Jun 27, 2022 2:46 pm
by psguru
OK, fair point. We'll make the change to sort directory comparison items if an empty directory has been made visible by EDP as a result of deletion. This will go to the next build of 13.0.

Re: Slippery directories

Posted: Tue Jun 28, 2022 9:02 am
by MSpagni
Thank you very much, as always. :!:
As I wrote, I think it was already so a few versions ago.

Re: Slippery directories

Posted: Wed Jun 29, 2022 9:44 am
by MSpagni
I beg your pardon. It's always been so. :oops:
Probably I never took note of that because I usually ask to delete also the directory.
Sorry.

Re: Slippery directories

Posted: Wed Jun 29, 2022 10:23 am
by psguru
No problem, we'll make the change anyway :)