mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
linux 中的快捷方式照成死循环(node_modules)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user