Slippery directories

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Slippery directories

Post 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:.
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Slippery directories

Post by psguru »

I probably somewhat understand the problem but could you describe it in steps, preferably with a small zipped example attached?
psguru
PrestoSoft
JeremyNicoll
Expert Member
Posts: 108
Joined: Sun May 02, 2010 12:00 pm
Location: Edinburgh

Re: Slippery directories

Post 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?
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Slippery directories

Post 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.
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Slippery directories

Post 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.
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Slippery directories

Post 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).
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Slippery directories

Post 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.
psguru
PrestoSoft
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Slippery directories

Post by MSpagni »

Thank you very much, as always. :!:
As I wrote, I think it was already so a few versions ago.
MSpagni
Expert Member
Posts: 537
Joined: Mon Mar 30, 2009 12:53 am
Location: Italy

Re: Slippery directories

Post 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.
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Slippery directories

Post by psguru »

No problem, we'll make the change anyway :)
psguru
PrestoSoft
Post Reply