Mercurial > projects > qtd
diff build/rm.d @ 1:e78566595089
initial import
author | mandel |
---|---|
date | Mon, 11 May 2009 16:01:50 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build/rm.d Mon May 11 16:01:50 2009 +0000 @@ -0,0 +1,23 @@ + import tango.io.FilePath; + import tango.io.Stdout; + import tango.text.Util; + void main (char[][] args) + { + foreach(arg; args[1..$]) + { + try + { + auto a = replace(arg,'\\','/'); + auto file = new FilePath(arg); + if (file.exists()) + { + file.remove(); + Stdout.format("'{}' removed", arg).newline; + } + } + catch + { + Stdout.format("Error: '{}' don`t removed", arg).newline; + } + } + }