Mercurial > projects > qtd
view build/rm.d @ 328:9327c7cca8f5 signals
todo file as we don't use bugzilla a lot.
author | eldar1@eldar1-laptop |
---|---|
date | Sun, 03 Jan 2010 12:40:51 +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; } } }