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

Last change on this file since 319 was 318, checked in by OverTaker, 17 years ago

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

File size: 832 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 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
36End Class
37
38
39
40End Namespace
41End Namespace
Note: See TracBrowser for help on using the repository browser.