# HG changeset patch # User Frank Benoit # Date 1215903115 -7200 # Node ID 7b1c122b4128581ec26a97f642bdb8a3191246e5 # Parent 8cdaac0dc74323ef7e86000ea60ff3a9f44b51a0 Add version TANGOSVN diff -r 8cdaac0dc743 -r 7b1c122b4128 snippets/tree/Snippet8.d --- 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);