Changeset 364:2bcb17ebe0be
- Timestamp:
- 11/08/09 14:57:46
(2 years ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- Tags:
tip
- branch:
- default
- Message:
fix: thx torhu
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r281 |
r364 |
|
| 9 | 9 | static import tango.io.FilePath; |
|---|
| 10 | 10 | static import tango.io.Path; |
|---|
| 11 | | static import tango.io.FileSystem; |
|---|
| | 11 | version (TANGOSVN) { |
|---|
| | 12 | static import tango.sys.Environment; |
|---|
| | 13 | } else { |
|---|
| | 14 | static import tango.io.FileSystem; |
|---|
| | 15 | } |
|---|
| 12 | 16 | |
|---|
| 13 | 17 | public class File { |
|---|
| … | … | |
| 70 | 74 | |
|---|
| 71 | 75 | public String getAbsolutePath(){ |
|---|
| 72 | | return tango.io.FileSystem.FileSystem.toAbsolute( mFilePath ).toString; |
|---|
| | 76 | version (TANGOSVN) { |
|---|
| | 77 | if ( mFilePath.isAbsolute ) return mFilePath.toString; |
|---|
| | 78 | else return mFilePath.absolute( tango.sys.Environment.Environment.cwd ).toString; |
|---|
| | 79 | } else { |
|---|
| | 80 | return tango.io.FileSystem.FileSystem.toAbsolute( mFilePath).toString; |
|---|
| | 81 | } |
|---|
| 73 | 82 | } |
|---|
| 74 | 83 | |
|---|