add comment

This commit is contained in:
Looly 2021-11-02 01:33:15 +08:00
parent b9699517a5
commit e779a9a74c

View File

@ -583,15 +583,15 @@ public class FileUtil extends PathUtil {
* 创建文件及其父目录如果这个文件存在直接返回这个文件<br>
* 此方法不对File对象类型做判断如果File不存在无法判断其类型
*
* @param fullFilePath 文件的全路径使用POSIX风格
* @param path 相对ClassPath的目录或者绝对路径目录使用POSIX风格
* @return 文件若路径为null返回null
* @throws IORuntimeException IO异常
*/
public static File touch(String fullFilePath) throws IORuntimeException {
if (fullFilePath == null) {
public static File touch(String path) throws IORuntimeException {
if (path == null) {
return null;
}
return touch(file(fullFilePath));
return touch(file(path));
}
/**
@ -2982,10 +2982,11 @@ public class FileUtil extends PathUtil {
}
/**
* 写数据到文件中
* 写数据到文件中<br>
* 文件路径如果是相对路径则相对ClassPath
*
* @param data 数据
* @param path 目标文件
* @param path 相对ClassPath的目录或者绝对路径目录
* @return 目标文件
* @throws IORuntimeException IO异常
*/