Ignore:
Timestamp:
Aug 28, 2007, 9:16:10 PM (17 years ago)
Author:
OverTaker
Message:

DirectoryInfo.GetFileSystemInfos()中心に色々と...

File:
1 edited

Legend:

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

    r271 r318  
    44
    55Class FileInfo
     6    Inherits FileSystemInfo
     7Public
     8    Sub FileInfo(path As String)
     9        OriginalPath = path
     10        FullPath = Path.GetFullPath(path)
     11        Refresh()
     12    End Sub
     13
     14    Sub ~FileInfo()
     15    End Sub
     16
     17    '----------------------------------------------------------------
     18    ' Public properties
     19    '----------------------------------------------------------------
     20
     21    Function Directory() As DirectoryInfo
     22        Return New DirectoryInfo(Path.GetDirectoryName(FullPath))
     23    End Function
     24
     25    Function DirectoryName() As String
     26        Return Path.GetDirectoryName(FullPath)
     27    End Function
     28
     29    Function IsReadOnly() As Boolean
     30        If (Attributes And FILE_ATTRIBUTE_READONLY) = FILE_ATTRIBUTE_READONLY Then
     31            Return True
     32        Else
     33            Return False
     34        End If
     35    End Function
    636End Class
     37
    738
    839
Note: See TracChangeset for help on using the changeset viewer.