Mercurial > projects > qtd
view build/rm.d @ 263:a7b313b8b149 lifetime
(none)
author | maxter |
---|---|
date | Tue, 22 Sep 2009 15:22:37 +0000 |
parents | e78566595089 |
children |
line wrap: on
line source
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; } } }