Mercurial > projects > dwt2
comparison base/src/java/io/File.d @ 107:e944a4cf537b
Updated to dmd 1.063 and Tango trunk.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 22 Aug 2010 18:53:29 +0200 |
parents | 70388b0e6dad |
children | 536e43f63c81 |
comparison
equal
deleted
inserted
replaced
106:bacf7be144c4 | 107:e944a4cf537b |
---|---|
8 version(Tango){ | 8 version(Tango){ |
9 static import tango.io.model.IFile; | 9 static import tango.io.model.IFile; |
10 static import tango.io.FilePath; | 10 static import tango.io.FilePath; |
11 static import tango.io.Path; | 11 static import tango.io.Path; |
12 static import tango.io.FileSystem; | 12 static import tango.io.FileSystem; |
13 static import tango.sys.Environment; | |
13 } else { // Phobos | 14 } else { // Phobos |
14 static import std.file; | 15 static import std.file; |
15 static import std.path; | 16 static import std.path; |
16 } | 17 } |
17 | 18 // Implement this more efficient by using FilePath in Tango |
18 public class File { | 19 public class File { |
19 | 20 |
20 public static char separatorChar; | 21 public static char separatorChar; |
21 public static String separator; | 22 public static String separator; |
22 public static char pathSeparatorChar; | 23 public static char pathSeparatorChar; |
103 return false; | 104 return false; |
104 } | 105 } |
105 | 106 |
106 public String getAbsolutePath(){ | 107 public String getAbsolutePath(){ |
107 version(Tango){ | 108 version(Tango){ |
108 return tango.io.FileSystem.FileSystem.toAbsolute( mFilePath ); | 109 return (new tango.io.FilePath.FilePath(mFilePath)).absolute(tango.sys.Environment.Environment.cwd).toString; |
109 } else { // Phobos | 110 } else { // Phobos |
110 implMissing( __FILE__, __LINE__ ); | 111 implMissing( __FILE__, __LINE__ ); |
111 return ""; | 112 return ""; |
112 } | 113 } |
113 } | 114 } |