Mercurial > projects > dwt-linux
comparison dwt/dwthelper/File.d @ 281:cfecc1fcffc2
Fix path handling, thanks yidabu for reporting.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 01 Aug 2008 07:15:28 +0200 |
parents | 9d67c3170a58 |
children | 2bcb17ebe0be |
comparison
equal
deleted
inserted
replaced
280:e72345914350 | 281:cfecc1fcffc2 |
---|---|
5 | 5 |
6 import dwt.dwthelper.utils; | 6 import dwt.dwthelper.utils; |
7 | 7 |
8 static import tango.io.model.IFile; | 8 static import tango.io.model.IFile; |
9 static import tango.io.FilePath; | 9 static import tango.io.FilePath; |
10 static import tango.io.Path; | |
10 static import tango.io.FileSystem; | 11 static import tango.io.FileSystem; |
11 | 12 |
12 public class File { | 13 public class File { |
13 | 14 |
14 public static char separatorChar; | 15 public static char separatorChar; |
24 pathSeparator = tango.io.model.IFile.FileConst.SystemPathString; | 25 pathSeparator = tango.io.model.IFile.FileConst.SystemPathString; |
25 pathSeparatorChar = tango.io.model.IFile.FileConst.SystemPathChar; | 26 pathSeparatorChar = tango.io.model.IFile.FileConst.SystemPathChar; |
26 } | 27 } |
27 | 28 |
28 public this ( String pathname ){ | 29 public this ( String pathname ){ |
29 mFilePath = new tango.io.FilePath.FilePath( pathname ); | 30 mFilePath = new tango.io.FilePath.FilePath( tango.io.Path.standard( pathname )); |
30 } | 31 } |
31 | 32 |
32 public this ( String parent, String child ){ | 33 public this ( String parent, String child ){ |
33 mFilePath = new tango.io.FilePath.FilePath( tango.io.FilePath.FilePath.join( parent, child ) ); | 34 mFilePath = new tango.io.FilePath.FilePath( tango.io.FilePath.FilePath.join( parent, child ) ); |
34 } | 35 } |