Select files not present in the other directory (by name)

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
moondog
Junior Member
Junior Member
Posts: 4
Joined: 2006-02-09, 11:43 UTC

Select files not present in the other directory (by name)

Post by *moondog »

Hi,
I have 2 directories, one (dir A) with 300 and the other (dir B) with 75 files.
I would like to select (in order to rename them) the files in A which are not present in B.
Note that the files in A and B have different contents and date, my selection needs only to be based on the filenames.

The files are the ones that you would have in the "synchronize dirs " window when you use it with "ignore date", "subdirs" and the singles button pressed.

My problem is that I would like to have those files marked, I don't need/want to move them to another dir.

Can you help?
TIA
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

SHIFT+F2
moondog
Junior Member
Junior Member
Posts: 4
Joined: 2006-02-09, 11:43 UTC

Post by *moondog »

Shift + F2 unfortunately selects the newer files too,
not only the files missing in the other directory.

I just want those files selected (the ones present on one side and not in the other), disregarding the date or content.
:(
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

moondog wrote:Shift + F2 unfortunately selects the newer files too,
not only the files missing in the other directory.

I just want those files selected (the ones present on one side and not in the other), disregarding the date or content.
:(
Just a workaround:


1 go to the directory you want to copy from
2. select all
3. Ctrl+u to swap the panels
4. Num/ to restore the selection
5. Num* to toggle the selction

Now all files that do not exist in the opposite pane are selected.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
moondog
Junior Member
Junior Member
Posts: 4
Joined: 2006-02-09, 11:43 UTC

Post by *moondog »

It works if, before swapping the panels, you first save the selection.

For my purpose it works, thanks a lot!

-it seemed a trivial function, maybe Christian could implement it? :D
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Here it works indeed without saving the selection.

But without swapping panels I had to save the section to file and load it from there to make it work.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
moondog
Junior Member
Junior Member
Posts: 4
Joined: 2006-02-09, 11:43 UTC

Post by *moondog »

I didn't save the selection to file, I used the mark/save selection command, which saves it in memory, I guess.
:?:
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Yes, that's what I understood.

But here the selection is saved automatically and I can restore it after the pane switch.

Before I had this idea to switch panels I tried it with save selection, too. But it did not work. I had to save the selection to a file instead.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Post Reply