Re: more questions, this time about exclude_dir mask

Denis Corbin <[email protected]>
Newsgroups gmane.comp.sysutils.backup.dar.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wesley Leggette wrote:
|
| This question is about the exclude_dir mask. Does this implicitly
| exclude directories? Thus like this:
|
| --
| foo
| foo/bar
| foo/baz
| this
| this/other
| that
| --
| exlude_dir "foo"
|
| -->
| this
| this/other
| that
| --
|
|
| Or do you have to and a not mask to turn an inclusion into an exclusion?
| Thus not_mask ( exclude_dir "foo" )
| Would do the previous?

An exclude_dir mask built with the string "foo" will match all string
that represent a subdirectory (or sub-file) under "foo", including "foo".

This if what is said in the tutorial (paragrah 4) and in the reference
manual for the API, and it stays true. So of course, don't get confused
by the name, to exclude the given "foo" directory and any file or
subdirectory in it, you need to negate this mask with a not_mask. The
name comes from the fact it is used to exclude directories, but you can
use it at your will to include directory, for example.

|
|
| Thanks as always


You are welcome :-) ... as always ;-)

Cheers,
Denis.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCD2FspC5CI8gYGlIRAjcpAJ4+rWp9PJ7Mbs3mS4p5Cw5ayp522wCfYmm0
NdCix7ewCKVvX0J3oCsYqTk=
=mnQ+
-----END PGP SIGNATURE-----



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.