Changeset 318 for trunk/Include/Classes/System/IO/FileInfo.ab
- Timestamp:
- Aug 28, 2007, 9:16:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/IO/FileInfo.ab
r271 r318 4 4 5 5 Class FileInfo 6 Inherits FileSystemInfo 7 Public 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 6 36 End Class 37 7 38 8 39
Note:
See TracChangeset
for help on using the changeset viewer.