Mercurial > projects > qtd
annotate build/rm.d @ 74:37caa90ce503
more porting
author | mandel |
---|---|
date | Fri, 22 May 2009 23:43:58 +0000 |
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 } |