diff dwt/dwthelper/File.d @ 272:463d461e6e78

Fix path handling, thanks yidabu for reporting.
author Frank Benoit <benoit@tionex.de>
date Fri, 01 Aug 2008 07:16:10 +0200
parents a63e2cd5485e
children f403c83322c3
line wrap: on
line diff
--- a/dwt/dwthelper/File.d	Tue Jul 29 02:41:05 2008 +0200
+++ b/dwt/dwthelper/File.d	Fri Aug 01 07:16:10 2008 +0200
@@ -7,6 +7,7 @@
 
 static import tango.io.model.IFile;
 static import tango.io.FilePath;
+static import tango.io.Path;
 static import tango.io.FileSystem;
 
 public class File {
@@ -26,7 +27,7 @@
     }
 
     public this ( String pathname ){
-        mFilePath = new tango.io.FilePath.FilePath( pathname );
+        mFilePath = new tango.io.FilePath.FilePath( tango.io.Path.standard( pathname ));
     }
 
     public this ( String parent, String child ){