Ignore:
Timestamp:
Feb 15, 2008, 7:48:54 PM (17 years ago)
Author:
OverTaker
Message:

FileSystemInfo.FileAttributesを修整

File:
1 edited

Legend:

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

    r404 r406  
    137137        Dim i As Long
    138138        For i = 0 To ELM(infos.Count)
    139             If infos[i].Attributes = FILE_ATTRIBUTE_DIRECTORY Then
     139            If (infos[i].Attributes and FileAttributes.Directory) = FileAttributes.Directory Then
    140140                dirs.Add(infos[i] As DirectoryInfo)
    141141            End If
     
    196196        Dim i As Long
    197197        For i = 0 To ELM(infos.Count)
    198             If infos[i].Attributes <> FILE_ATTRIBUTE_DIRECTORY Then
     198            If (infos[i].Attributes and FileAttributes.Directory) <> FileAttributes.Directory Then
    199199                files.Add(infos[i] As FileInfo)
    200200            End If
Note: See TracChangeset for help on using the changeset viewer.