public class FileHandle extends Object
| Constructor and Description |
|---|
FileHandle() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
CreateFolder(String targetDir)
方法说明:
创建文件夹
CreateTime Apr 17, 2009 11:35:28 PM
|
static boolean |
deleteDirectory(String sPath)
方法说明:
删除目录(文件夹)以及目录下的文件
CreateTime Apr 17, 2009 11:39:51 PM
|
static boolean |
deleteFile(String sPath)
方法说明:
删除单个文件
CreateTime Apr 17, 2009 11:38:48 PM
|
static boolean |
DeleteFolder(String sPath)
方法说明:
根据路径删除指定的目录或文件,无论存在与否
CreateTime Apr 17, 2009 11:37:01 PM
|
public static boolean CreateFolder(String targetDir)
targetDir - 文件夹完整路径public static boolean DeleteFolder(String sPath)
sPath - 要删除的目录或文件public static boolean deleteFile(String sPath)
sPath - 被删除文件的文件名public static boolean deleteDirectory(String sPath)
sPath - 被删除目录的文件路径Copyright © 2017. All rights reserved.