mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
!200 FileUtil.size 方法在linux node_modules 目录死循环
Merge pull request !200 from 不忘初心/v5-dev
This commit is contained in:
commit
093363f3b9
@ -511,7 +511,7 @@ public class FileUtil extends PathUtil {
|
||||
* @return 总大小,bytes长度
|
||||
*/
|
||||
public static long size(File file) {
|
||||
if (null == file || false == file.exists()) {
|
||||
if (null == file || false == file.exists() || FileUtil.isSymlink(file)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user