diff --git a/src/main/java/net/lingala/zip4j/util/FileUtils.java b/src/main/java/net/lingala/zip4j/util/FileUtils.java index ce08084e..b6206c4a 100644 --- a/src/main/java/net/lingala/zip4j/util/FileUtils.java +++ b/src/main/java/net/lingala/zip4j/util/FileUtils.java @@ -110,10 +110,6 @@ public static List<File> getFilesInDirectoryRecursive(File path, ZipParameters z } for (File file : filesAndDirs) { - if (!isFileRegularOrDirectoryOrSymlink(file)) { - continue; - } - if (zipParameters.getExcludeFileFilter() != null && zipParameters.getExcludeFileFilter().isExcluded(file)) { continue; } @@ -595,11 +591,4 @@ private static void addIfBitSet(byte b, int pos, Set<PosixFilePermission> posixF posixFilePermissions.add(posixFilePermissionToAdd); } } - - private static boolean isFileRegularOrDirectoryOrSymlink(File file) { - byte[] fileAttributes = getFileAttributes(file); - return BitUtils.isBitSet(fileAttributes[3], 5) - || BitUtils.isBitSet(fileAttributes[3], 6) - || BitUtils.isBitSet(fileAttributes[3], 7); - } }