comparison jface/FileTreeViewer.d @ 136:7931ee9b41e6

Fix path handling, thanks yidabu for reporting.
author Frank Benoit <benoit@tionex.de>
date Sun, 03 Aug 2008 04:38:21 +0200
parents ae94c6a65f9e
children 42c3056512ba
comparison
equal deleted inserted replaced
135:425c1adb5de5 136:7931ee9b41e6
34 //------------------------------------ 34 //------------------------------------
35 //import dwt.dwthelper.utils; 35 //import dwt.dwthelper.utils;
36 //------------------------------------ 36 //------------------------------------
37 37
38 import tango.io.FileSystem; 38 import tango.io.FileSystem;
39 import tango.io.Path;
39 import tango.io.FilePath; 40 import tango.io.FilePath;
40 import tango.util.log.Trace; 41 import tango.util.log.Trace;
41 42
42 import tango.util.collection.model.Seq; 43 import tango.util.collection.model.Seq;
43 import tango.util.collection.ArraySeq; 44 import tango.util.collection.ArraySeq;
131 foreach( root; FileSystem.roots()){ 132 foreach( root; FileSystem.roots()){
132 // ignore floppy drives, they bring up strange error messages 133 // ignore floppy drives, they bring up strange error messages
133 if( root == `A:\`|| root == `B:\` ){ 134 if( root == `A:\`|| root == `B:\` ){
134 continue; 135 continue;
135 } 136 }
136 res ~= new FilePath( root ); 137 res ~= new FilePath( tango.io.Path.standard( root ));
137 } 138 }
138 return res; 139 return res;
139 } 140 }
140 141
141 public override void dispose(){ 142 public override void dispose(){