Changeset 321 for trunk/Include/Classes/System/IO
- Timestamp:
- Sep 2, 2007, 9:27:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/IO/DirectoryInfo.ab
r318 r321 95 95 If searchOption = SearchOption.TopDirectoryOnly Then 96 96 Return GetDirectories(searchPattern) 97 Else 97 ElseIf searchOption = SearchOption.AllDirectories Then 98 98 Dim dirs As List<DirectoryInfo> 99 99 dirs = GetDirectories(searchPattern) 100 Dim i As Long101 100 101 Dim subdirs As List<DirectoryInfo> 102 Dim i As Long, j As Long 103 For i = 0 To ELM(dirs.Count) 104 subdirs = dirs[i].GetDirectories(searchPattern) 105 For j = 0 To ELM(subdirs.Count) 106 dirs.Add(subdirs[i]) 107 Next 108 Next 109 Return dirs 102 110 End If 103 111 End Function*/ … … 153 161 lastError = GetLastError() 154 162 If lastError <> ERROR_NO_MORE_FILES Then 163 FindClose(find) 155 164 debug 'Exception 156 165 Return Nothing … … 159 168 i++ 160 169 Wend 170 FindClose(find) 161 171 Return files 162 172 End Function
Note:
See TracChangeset
for help on using the changeset viewer.