Mercurial > projects > qtd
view build/rm.d @ 394:92be7d54716e
Adapted QVariant.fromValue to D2 so that it at least compiles.
I am not sure if the code is really correct, though.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 28 Aug 2010 03:15:31 +0200 |
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; } } }