Mercurial > projects > qtd
view build/rm.d @ 343:552647ec0f82
Added tag qtd.0.5 for changeset c887282e1590
author | maxter <spambox@d-coding.com> |
---|---|
date | Thu, 13 May 2010 21:01:24 +0300 |
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; } } }