Ignore:
Timestamp:
Sep 9, 2007, 2:21:07 PM (17 years ago)
Author:
OverTaker
Message:

DirectoryInfo.GetDirectoriesのバグ修整。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/Classes/System/IO/DirectoryInfo.ab

    r330 r333  
    105105                    subdirs = dirs[i].GetDirectories(searchPattern)
    106106                    For j = 0 To ELM(subdirs.Count)
    107                         dirs.Add(subdirs[i])
     107                        dirs.Add(subdirs[j])
    108108                    Next
    109109                Next
     
    136136            Case SearchOption.AllDirectories
    137137                Dim dirs As List<DirectoryInfo>
    138                 dirs = GetDirectories(searchPattern, SearchOption.AllDirectories)
     138                dirs = GetDirectories("?*", SearchOption.AllDirectories)
    139139
    140140                Dim files As List<FileInfo>
    141                 Dim subfiles As List<FileInfo>
    142                 Dim i As Long, j As Long
     141                files = GetFiles(searchPattern)
     142                Dim i As Long, j As Long, subfiles As List<FileInfo>
    143143                For i = 0 To ELM(dirs.Count)
    144144                    subfiles = dirs[i].GetFiles(searchPattern)
Note: See TracChangeset for help on using the changeset viewer.