Package tech.mgl.core.utils
Class MGL_FileUtils
java.lang.Object
tech.mgl.core.utils.MGL_FileUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic void迭代删除所有子文件夹文件夹及文件获取指定路径下的所有文件及文件夹static FilegetDirectoryCDir(String path) 获取目录 如不存在自动创建static FilegetFileCPDir(String path) 自动创建父目录的 并获取文件static FilegetFileCreate(String path) 获取文件 如不存在自动创建
-
Constructor Details
-
MGL_FileUtils
public MGL_FileUtils()
-
-
Method Details
-
getFileCreate
获取文件 如不存在自动创建- Parameters:
path- create path- Returns:
- File
-
getFileCPDir
自动创建父目录的 并获取文件- Parameters:
path- 指定目录- Returns:
- File
-
getDirectoryCDir
获取目录 如不存在自动创建- Parameters:
path- 指定路径- Returns:
- File 返回指定的目录文件类型
-
getAll
获取指定路径下的所有文件及文件夹- Parameters:
path- 指定的路径- Returns:
- List
-
delete
-
delete
-
deleteAll
迭代删除所有子文件夹文件夹及文件- Parameters:
dir- 指定路径
-