提交 5aeca7eb authored 作者: Thomas Mueller's avatar Thomas Mueller

Use consistent parameter names

上级 eb0c956e
......@@ -312,14 +312,14 @@ public class FileUtils {
}
/**
* Try to delete a file (ignore errors).
* Try to delete a file or directory (ignoring errors).
*
* @param fileName the file name
* @param path the file or directory name
* @return true if it worked
*/
public static boolean tryDelete(String fileName) {
public static boolean tryDelete(String path) {
try {
FilePath.get(fileName).delete();
FilePath.get(path).delete();
return true;
} catch (Exception e) {
return false;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论