Changeset 271 for Include/Classes/System/IO
- Timestamp:
- Jun 12, 2007, 6:15:09 PM (17 years ago)
- Location:
- Include/Classes/System/IO
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/IO/DirectoryInfo.ab
r142 r271 1 2 Namespace System 3 Namespace IO 4 1 5 Class DirectoryInfo 2 6 Inherits FileSystemInfo … … 34 38 End Sub 35 39 36 /* Override Sub Delete(recursive As Boolean) 37 End Sub*/ 40 Sub Delete(recursive As Boolean) 41 If recursive Then 42 ' ディレクトリ内のすべての情報を削除する 43 44 Dim dirPath = FullPath As String 45 46 ' 終端の '\' を除去 47 If dirPath[dirPath.Length-1] = Asc("\\") Then 48 dirPath = dirPath.SubString(0, dirPath.Length-1) 49 End If 50 51 ' double null-terminated にする 52 dirPath = dirPath + Chr$(0) 53 54 Dim op As SHFILEOPSTRUCT 55 op.hwnd = NULL 56 op.wFunc = FO_DELETE 57 op.pFrom = dirPath.Chars 58 op.pTo = NULL 59 op.fFlags = FOF_NOCONFIRMATION or FOF_NOERRORUI or FOF_SILENT 60 61 If SHFileOperation(op) <> 0 Then 62 ' TODO: エラー処理 63 debug 64 End If 65 Else 66 ' ディレクトリが空の場合は削除する 67 This.Delete() 68 End If 69 End Sub 38 70 39 71 /* Function GetAccessControl() As DirectorySecurity … … 82 114 TopDirectoryOnly 83 115 End Enum 116 117 End Namespace 118 End Namespace -
Include/Classes/System/IO/DriveInfo.ab
r142 r271 1 Namespace System 2 Namespace IO 3 4 1 5 Enum DriveType 2 6 Unknown = 0 … … 89 93 End Function 90 94 End Class 95 96 97 End Namespace 98 End Namespace -
Include/Classes/System/IO/File.ab
r105 r271 1 Namespace System 2 Namespace IO 3 1 4 2 5 Enum FileAccess … … 244 247 245 248 End Class 249 250 251 End Namespace 252 End Namespace -
Include/Classes/System/IO/FileInfo.ab
r60 r271 1 Namespace System 2 Namespace IO 3 1 4 2 5 Class FileInfo 3 6 End Class 7 8 9 End Namespace 10 End Namespace -
Include/Classes/System/IO/FileStream.ab
r262 r271 1 Namespace System 2 Namespace IO 3 1 4 2 5 /* ほんとはmiscに入れるかかファイルを分けたほうがいいかもしれないが一先ず実装 */ … … 366 369 MemberwiseClone*/ 367 370 End Class 371 372 373 End Namespace 374 End Namespace -
Include/Classes/System/IO/FileSystemInfo.ab
r142 r271 1 Namespace System 2 Namespace IO 3 4 1 5 Class FileSystemInfo 2 6 m_CreationTime As FILETIME … … 193 197 End Function 194 198 End Class 199 200 201 End Namespace 202 End Namespace -
Include/Classes/System/IO/Path.ab
r197 r271 2 2 3 3 #require <Classes/System/Environment.ab> 4 5 6 Namespace System 7 Namespace IO 8 4 9 5 10 Class Path … … 150 155 Return GetTempFileName(pPathName, pPrefixString, uUnique, pTempFileName) 151 156 End Function 157 158 159 End Namespace 160 End Namespace -
Include/Classes/System/IO/Stream.ab
r262 r271 1 Namespace System 2 Namespace IO 3 1 4 2 5 Class Stream … … 65 68 Virtual Function CreateWaitHandle() As System.Threading.WaitHandle: End Function 66 69 End Class 70 71 72 End Namespace 73 End Namespace -
Include/Classes/System/IO/StreamReader.ab
r105 r271 1 Namespace System 2 Namespace IO 3 4 1 5 Class StreamReader 2 6 ' TODO: 実装 3 7 End Class 8 9 10 End Namespace 11 End Namespace -
Include/Classes/System/IO/StreamWriter.ab
r105 r271 1 Namespace System 2 Namespace IO 3 4 1 5 Class StreamWriter 2 6 ' TODO: 実装 3 7 End Class 8 9 10 End Namespace 11 End Namespace -
Include/Classes/System/IO/index.ab
r129 r271 1 '#require "Directory.ab"2 '#require "DirectoryInfo.ab"3 4 1 #require "misc.ab" 5 2 #require "DirectoryInfo.ab"
Note:
See TracChangeset
for help on using the changeset viewer.