changeset 118:7b1c122b4128

Add version TANGOSVN
author Frank Benoit <benoit@tionex.de>
date Sun, 13 Jul 2008 00:51:55 +0200
parents 8cdaac0dc743
children 9a1be6ff19a2
files snippets/tree/Snippet8.d
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/snippets/tree/Snippet8.d	Sat Jul 12 20:09:06 2008 +0200
+++ b/snippets/tree/Snippet8.d	Sun Jul 13 00:51:55 2008 +0200
@@ -31,7 +31,12 @@
 
 import dwt.dwthelper.utils;
 import tango.io.FilePath;
+version(TANGOSVN){
+import tango.io.FileSystem;
+}
+else{
 import tango.io.FileRoots;
+}
 
 void main () {
     auto display = new Display ();
@@ -39,7 +44,12 @@
     shell.setText ("Lazy Tree");
     shell.setLayout (new FillLayout ());
     auto tree = new Tree (shell, DWT.BORDER);
+version(TANGOSVN){
+    auto roots = FileSystem.roots();
+}
+else{
     auto roots = FileRoots.list();
+}
     foreach (file; roots) {
         auto root = new TreeItem (tree, 0);
         root.setText (file);