Changeset 111:5fe95b1ccf68
- Timestamp:
- 07/06/08 17:35:10
(5 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Fix: compile error for tango svn
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r73 |
r111 |
|
| 36 | 36 | //------------------------------------ |
|---|
| 37 | 37 | |
|---|
| | 38 | version(TANGOSVN){ |
|---|
| | 39 | import tango.io.FileSystem; |
|---|
| | 40 | } |
|---|
| | 41 | else{ |
|---|
| 38 | 42 | import tango.io.FileRoots; |
|---|
| | 43 | } |
|---|
| 39 | 44 | import tango.io.FilePath; |
|---|
| 40 | 45 | import tango.util.log.Trace; |
|---|
| … | … | |
| 129 | 134 | Object[] res; |
|---|
| 130 | 135 | |
|---|
| | 136 | version(TANGOSVN){ |
|---|
| | 137 | foreach( root; FileSystem.roots()){ |
|---|
| | 138 | // ignore floppy drives, they bring up strange error messages |
|---|
| | 139 | if( root == `A:\`|| root == `B:\` ){ |
|---|
| | 140 | continue; |
|---|
| | 141 | } |
|---|
| | 142 | res ~= new FilePath( root ); |
|---|
| | 143 | } |
|---|
| | 144 | } |
|---|
| | 145 | else{ |
|---|
| 131 | 146 | foreach( root; FileRoots.list()){ |
|---|
| 132 | 147 | // ignore floppy drives, they bring up strange error messages |
|---|
| … | … | |
| 136 | 151 | res ~= new FilePath( root ); |
|---|
| 137 | 152 | } |
|---|
| 138 | | |
|---|
| | 153 | } |
|---|
| 139 | 154 | return res; |
|---|
| 140 | 155 | } |
|---|