source: trunk/Include/Classes/System/IO/FileInfo.ab @ 435

Last change on this file since 435 was 406, checked in by OverTaker, 15 years ago

FileSystemInfo?.FileAttributesを修整

File size: 819 bytes
RevLine 
[271]1Namespace System
2Namespace IO
[60]3
[271]4
[60]5Class FileInfo
[318]6    Inherits FileSystemInfo
7Public
8    Sub FileInfo(path As String)
9        OriginalPath = path
10        FullPath = Path.GetFullPath(path)
11    End Sub
12
13    Sub ~FileInfo()
14    End Sub
15
16    '----------------------------------------------------------------
17    ' Public properties
18    '----------------------------------------------------------------
19
20    Function Directory() As DirectoryInfo
21        Return New DirectoryInfo(Path.GetDirectoryName(FullPath))
22    End Function
23
24    Function DirectoryName() As String
25        Return Path.GetDirectoryName(FullPath)
26    End Function
27
28    Function IsReadOnly() As Boolean
[406]29        If (Attributes and FileAttributes.ReadOnly) = FileAttributes.ReadOnly Then
[318]30            Return True
31        Else
32            Return False
33        End If
34    End Function
[60]35End Class
[271]36
37
[318]38
[271]39End Namespace
40End Namespace
Note: See TracBrowser for help on using the repository browser.