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

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

FileSystemInfo.FileAttributesを修整

File size: 819 bytes
Line 
1Namespace System
2Namespace IO
3
4
5Class FileInfo
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
29 If (Attributes and FileAttributes.ReadOnly) = FileAttributes.ReadOnly Then
30 Return True
31 Else
32 Return False
33 End If
34 End Function
35End Class
36
37
38
39End Namespace
40End Namespace
Note: See TracBrowser for help on using the repository browser.