Changeset 466 for trunk/Include/Classes/System/IO/FileSystemInfo.ab
- Timestamp:
- Mar 8, 2008, 7:33:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/IO/FileSystemInfo.ab
r462 r466 73 73 */ 74 74 Sub Attributes(value As FileAttributes) 75 If SetFileAttributes(ToTCStr(FullPath), value) = FALSE Then 76 'Exception 77 Debug 75 If Not SetFileAttributes(ToTCStr(FullPath), value) Then 76 Throw New IOException("FileSystemInfo.Attributes: Failed to SetFileAttributes.") 78 77 End If 79 78 End Sub … … 199 198 */ 200 199 Function Exists() As Boolean 201 Dim data As WIN32_FIND_DATA 202 Dim hFind = FindFirstFile(ToTCStr(FullPath), data) 203 FindClose(hFind) 204 205 If hFind <> INVALID_HANDLE_VALUE Then 206 Return True 207 Else 208 Return False 209 End If 200 Return File.Exists(FullPath) 210 201 End Function 211 202
Note:
See TracChangeset
for help on using the changeset viewer.