view build/rm.d @ 381:347e4c7a9ba1

make QwtD compile on Windows@
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Sun, 11 Jul 2010 01:59:42 +0100
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;
	 }
     }
 }