comparison build/rm.d @ 1:e78566595089

initial import
author mandel
date Mon, 11 May 2009 16:01:50 +0000
parents
children
comparison
equal deleted inserted replaced
0:36fb74dc547d 1:e78566595089
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 }