exclude folders?

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
redbarn
New Member
Posts: 7
Joined: Mon Oct 18, 2004 5:43 am

exclude folders?

Post by redbarn »

I can't seem to manage to exclude folders in a comparison job,

in my test I'm comparing a folder called c:\test

in contains a subfolder c:\test\brol

I would like to exclude this 'brol' folder from the compare task

I've tried many type of exclude ( ":*brol*" , "brol" , ":brol" ... )

but in the result windows, I can always see files from this folder being compared, I would like to totally exclude subfolders from being compared

do I miss somethings?
User avatar
psguru
Site Admin
Posts: 2396
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post by psguru »

The correct way to exclude all files from c:\test\brol folder is the following exclude filter:

:*brol*

Remember that you need 3.2+ version to support this syntax. If it still doesn't work for you, please send me (privately) the following: 2 zipped directories that you are comparing, your options exported to a file, and a screenshot with files from excluded directories shown.
psguru
PrestoSoft
redbarn
New Member
Posts: 7
Joined: Mon Oct 18, 2004 5:43 am

Post by redbarn »

woops, apology ... I was misguided by the online help which was using quote in the examples, I was so dumb to also include quote in my exclude rules ;) :oops:

so it works now :D
redbarn
New Member
Posts: 7
Joined: Mon Oct 18, 2004 5:43 am

Post by redbarn »

sorry to reopen this call, but I think I still miss somethings,

let's stay I compare those 2 folders:

d:\test\folder1
with
d:\test\folder2

in folder1 I have the following folders:

\department1\everyone
\department2\everyone
\department3\everyone

let's say I dont want to compare just the \department2\everyone

what would be the exact statement I have to use in the Dir Comparison exclude patterns ? I've tried most things, but can't get it work ...
User avatar
psguru
Site Admin
Posts: 2396
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post by psguru »

You'd need to exclude the following patterns:

:*\department1\everyone\*,:*\department3\everyone\*
psguru
PrestoSoft
redbarn
New Member
Posts: 7
Joined: Mon Oct 18, 2004 5:43 am

Post by redbarn »

didn't you mean:

:*\department2\everyone\*

since it is "\department2\everyone" I dont want to compare ...

the problem is, if I have somewhere else in my directories a folder structure named "\department2\everyone\", it will also not compare it

sorry If I'm not clear ;)
User avatar
psguru
Site Admin
Posts: 2396
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post by psguru »

didn't you mean:

:*\department2\everyone\*

since it is "\department2\everyone" I dont want to compare ...
Right. I thought you didn't want to compare the other two.
the problem is, if I have somewhere else in my directories a folder structure named "\department2\everyone\", it will also not compare it
Correct. Is this a real-life concern? Could you give me then an example where, in your experience, this happened?
psguru
PrestoSoft
redbarn
New Member
Posts: 7
Joined: Mon Oct 18, 2004 5:43 am

Post by redbarn »

lets say the structure is like this, ok it may sound dumbs, but just replace the name with somethings which make more senses :)

\everyone
\departments1\everyone
\finance\global\everyone
...

let's say I don't want to compare the first root folder named "\everyone",
If I understand correctly I have to use this pattern:

:*\everyone\*

but it will also exclude any other folders named "\everyone\" (such as the one found in departments1 and also in finance\global)

cant we make an exclusion using absolute path instead of relative ?
User avatar
psguru
Site Admin
Posts: 2396
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post by psguru »

I see.
cant we make an exclusion using absolute path instead of relative ?
The path filters (the ones starting with :) already use the absolute path of files. So in your case you'd have to prefix your filter with higher-lever directories (such as :c:\files1\everyone\* and :c:\files2\everyone\*).
psguru
PrestoSoft
xmarcus
New Member
Posts: 1
Joined: Fri Oct 21, 2005 6:21 am

Post by xmarcus »

Isn't there a way to exclude all folders that are level one directories in the directory you are comparing without putting the full path?

If I'm comparing
/abc
--/d
--/e
--/f

I want a way to exlude all files under /d.

I don't want to do ":*\d\*" because that will exclude "d" folders under the /abc/e directory.

And I don't want to do "c:\blah\abc\d\*" as the path c:\blah can be vary.

Thanks
User avatar
psguru
Site Admin
Posts: 2396
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post by psguru »

How about ":*\abc\d\*" ?
psguru
PrestoSoft
pgorman
New Member
Posts: 1
Joined: Wed Jan 31, 2007 7:07 pm
Location: Melbourne

Post by pgorman »

I'm comparing 2 directory strutures, one that has been checked out of CVS and another that has come from another source control system.

The CVS checkout has a CVS directory in every folder that I want to ignore.

I have found that the following pattern excludes all the CVS directories which is excellent:

:*\CVS\*

I just thought I would share this information as I thought the pattern matching was not working and searching for CVS in the forums did not reveal an answer.

Regards

Paul.
bmerkle
Full Member
Posts: 32
Joined: Thu Oct 13, 2005 2:11 am

Post by bmerkle »

maybe this could be an option that examdiff pro offers (for the most common SCM that are around).

We are using CVS and SVN here, hence the pattern is:

:*\CVS\*,:*\.svn\*

a checkbox (ignore CVS/SVN directories) could be helpful, or maybe an entry into the FAQs,

thanks,
Bernhard.
User avatar
psguru
Site Admin
Posts: 2396
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post by psguru »

Version 4.0 now has predefined filters, including the one called "Exclude source control".
psguru
PrestoSoft
Post Reply