Mercurial > projects > qtd
annotate build/rm.d @ 414:b2a803c73b89 default tip
Declare tabArray const.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Fri, 06 May 2011 13:39:49 +0200 |
parents | e78566595089 |
children |
rev | line source |
---|---|
1 | 1 import tango.io.FilePath; |
2 import tango.io.Stdout; | |
3 import tango.text.Util; | |
4 void main (char[][] args) | |
5 { | |
6 foreach(arg; args[1..$]) | |
7 { | |
8 try | |
9 { | |
10 auto a = replace(arg,'\\','/'); | |
11 auto file = new FilePath(arg); | |
12 if (file.exists()) | |
13 { | |
14 file.remove(); | |
15 Stdout.format("'{}' removed", arg).newline; | |
16 } | |
17 } | |
18 catch | |
19 { | |
20 Stdout.format("Error: '{}' don`t removed", arg).newline; | |
21 } | |
22 } | |
23 } |