mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
linux 中的快捷方式照成死循环(node_modules)
This commit is contained in:
parent
d3bbc99076
commit
fe9bf4a183
@ -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