Mercurial > projects > dwt-win
comparison dwt/dwthelper/File.d @ 248:d10ff1f47f84
Add: version TANGOSVN
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 06 Jul 2008 16:42:54 +0200 |
parents | ab60f3309436 |
children | a63e2cd5485e |
comparison
equal
deleted
inserted
replaced
242:32a6819fef61 | 248:d10ff1f47f84 |
---|---|
3 */ | 3 */ |
4 module dwt.dwthelper.File; | 4 module dwt.dwthelper.File; |
5 | 5 |
6 import dwt.dwthelper.utils; | 6 import dwt.dwthelper.utils; |
7 | 7 |
8 static import tango.io.FileConst; | 8 version(TANGOSVN) { |
9 static import tango.io.model.IFile; | |
10 } | |
11 else{ | |
12 static import tango.io.FileConst; | |
13 } | |
9 static import tango.io.FilePath; | 14 static import tango.io.FilePath; |
10 static import tango.io.FileSystem; | 15 static import tango.io.FileSystem; |
11 | 16 |
12 public class File { | 17 public class File { |
13 | 18 |
17 public static String pathSeparator; | 22 public static String pathSeparator; |
18 | 23 |
19 private tango.io.FilePath.FilePath mFilePath; | 24 private tango.io.FilePath.FilePath mFilePath; |
20 | 25 |
21 static this(){ | 26 static this(){ |
27 version(TANGOSVN) { | |
28 separator = tango.io.model.IFile.FileConst.PathSeparatorString; | |
29 separatorChar = tango.io.model.IFile.FileConst.PathSeparatorChar; | |
30 pathSeparator = tango.io.model.IFile.FileConst.SystemPathString; | |
31 pathSeparatorChar = tango.io.model.IFile.FileConst.SystemPathChar; | |
32 } | |
33 else{ | |
22 separator = tango.io.FileConst.FileConst.PathSeparatorString; | 34 separator = tango.io.FileConst.FileConst.PathSeparatorString; |
23 separatorChar = tango.io.FileConst.FileConst.PathSeparatorChar; | 35 separatorChar = tango.io.FileConst.FileConst.PathSeparatorChar; |
24 pathSeparator = tango.io.FileConst.FileConst.SystemPathString; | 36 pathSeparator = tango.io.FileConst.FileConst.SystemPathString; |
25 pathSeparatorChar = tango.io.FileConst.FileConst.SystemPathChar; | 37 pathSeparatorChar = tango.io.FileConst.FileConst.SystemPathChar; |
38 } | |
26 } | 39 } |
27 | 40 |
28 public this ( String pathname ){ | 41 public this ( String pathname ){ |
29 mFilePath = new tango.io.FilePath.FilePath( pathname ); | 42 mFilePath = new tango.io.FilePath.FilePath( pathname ); |
30 } | 43 } |