...文件夹),CreateTextFile(创建文件),DeleteFolder(删除文件夹),DeleteFile(删除文件),CopyFolder(复制文件夹),CopyFile(复制文件),GetDrive(访问驱动器),GetFolder(访问文件夹),GetFile(访问文件)等.
基于238个网页-相关网页
Fortunately, all of these are handled by the finally clause, which releases all the resources used by copyFile .
幸运的是,所有这些都由finally语句来处理,该语句释放了copyFile所使用的所有资源。
The code bellow defined CreateFile and CopyFile two classes, use Command patten and Composite patten log requests, and support undoable operations.
下面的例子定义了 创建文件 和 拷贝文件 两个类,使用命令模式和组合模式记录日志,并实现逆操作。
应用推荐