diff dwt/dwthelper/File.d @ 134:623ff6db5f1d

Updated to Tango 0.99.8
author Jacob Carlborg <doob@me.com>
date Sun, 24 May 2009 22:21:00 +0200
parents 198549365851
children
line wrap: on
line diff
--- a/dwt/dwthelper/File.d	Tue Mar 24 20:55:08 2009 +0100
+++ b/dwt/dwthelper/File.d	Sun May 24 22:21:00 2009 +0200
@@ -8,6 +8,7 @@
 static import tango.io.model.IFile;
 static import tango.io.FilePath;
 static import tango.io.FileSystem;
+import tango.sys.Environment;
 
 public class File {
 
@@ -66,11 +67,10 @@
         implMissing( __FILE__, __LINE__ );
         return false;
     }
-
+    
     public char[] getAbsolutePath(){
-        return tango.io.FileSystem.FileSystem.toAbsolute( mFilePath ).toString;
+        return mFilePath.absolute(Environment.cwd).toString;
     }
-
     public dwt.dwthelper.File.File getAbsoluteFile(){
         return new File( getAbsolutePath() );
     }