mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
file empty return true
This commit is contained in:
@@ -127,7 +127,7 @@ public class FileUtil extends PathUtil {
|
||||
* @return 是否为空,当提供非目录时,返回false
|
||||
*/
|
||||
public static boolean isEmpty(File file) {
|
||||
if (null == file) {
|
||||
if (null == file || false == file.exists()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user