Changeset 118:7b1c122b4128

Show
Ignore:
Timestamp:
07/12/08 18:51:55 (2 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Add version TANGOSVN

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • snippets/tree/Snippet8.d

    r78 r118  
    3232import dwt.dwthelper.utils; 
    3333import tango.io.FilePath; 
     34version(TANGOSVN){ 
     35import tango.io.FileSystem; 
     36} 
     37else{ 
    3438import tango.io.FileRoots; 
     39} 
    3540 
    3641void main () { 
     
    4045    shell.setLayout (new FillLayout ()); 
    4146    auto tree = new Tree (shell, DWT.BORDER); 
     47version(TANGOSVN){ 
     48    auto roots = FileSystem.roots(); 
     49} 
     50else{ 
    4251    auto roots = FileRoots.list(); 
     52} 
    4353    foreach (file; roots) { 
    4454        auto root = new TreeItem (tree, 0);