If for example, we have a directory path like c:\a\b\c\d, the above code
snippet will delete .txt files from directory b down. Hope it helps.
Munawar
-Original Message-
From: Bob Archer [mailto:bob.arc...@amsi.com]
Sen
If for example, we have a directory path like c:\a\b\c\d, then above code
snippet will delete .txt files from directory b down preserving the folder
structure. Hope it helps.
Munawar
-Original Message-
From: Bob Archer [mailto:bob.arc...@
It you use Include name="**" that will (should) include all files in all
directories.
BOb
> -Original Message-
> From: Parrish, Ken [mailto:kparr...@gomez.com]
> Sent: Tuesday, January 06, 2009 5:56 PM
> To: Bob Archer; Brass Tilde; nant-users@lists.sourceforge.net
> Subject: RE: [NAnt-u
Bob,
Yes, '*' matches all files, but will also match all directory names and
the net result is to delete the entire directory tree.
What I want to do is to recursively delete all the files in a directory
tree WITHOUT deleting any of the directories themselves. In addition,
it would be extremely
Gert,
Yes, the works exactly as desired. I can define a
(in this case with a dozen entries) and reuse it throughout
my set of scripts.
Thanks.
Ken
From: Gert Driesen [mailto:gert.drie...@telenet.be]
Sent: Tuesday, January 06, 2009 4:18 PM
To: Parrish, Ken; nant-users@lists.sourceforge.n
Rather than using *.* use * ... that will match any filename with or
without an extension.
I guess I don't understand why you can just exclude your config file
names. If they are in a directory the directory won't be deleted.
BOb
> -Original Message-
> From: Parrish, Ken [mailto:kparr.
Ken,
You should actually be using a in combination with a fileset:
http://nant.sourceforge.net/release/latest/help/types/patternset.html
Hope this helps,
Gert
From: Parrish, Ken [mailto:kparr...@gomez.com]
Sent: dinsdag 6 januari 2009 21:20
To: nant-users@lists.sourceforge.net
Su
I am attempting to use the feature of a which allows for an
external reference to a pre-defined fileset. This would be most useful
in my application in cases where a complicated include/exclude filter
needs to be applied to several file and directory operations.
However, the behavior of the 'b
Nant Users,
Thanks for your feedback on this. I've replied to this list a couple of
time, but my posting keep getting bounced.
The addition of a filesOnly and/or directoriesOnly attribute to a
would greatly simplify file operations which need to be
applied to one or the other, yet still allow f
> IF this a consistent directory tree? If so, just exclude the directories
> from the delete. If not I think you should be able to use a foreach to loop
> over a fileset and delete each individual files. But, I don't know how good
> the performance on this will be.
Would the effort of adding a "fi
IF this a consistent directory tree? If so, just exclude the directories
from the delete. If not I think you should be able to use a foreach to
loop over a fileset and delete each individual files. But, I don't know
how good the performance on this will be.
BOb
_
I am trying to write a Nant task which, given the pathname of a
directory, will recursively remove all the files at all levels in the
directory tree, but will NOT delete any of the directories themselves.
This is needed so that we can 'purge' a deployment web site, but
preserve the directory tree
12 matches
Mail list logo