Skip to content

Commit 4e13a75

Browse files
#442 Remove file attributes check
1 parent 7b586be commit 4e13a75

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/main/java/net/lingala/zip4j/util/FileUtils.java

-11
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ public static List<File> getFilesInDirectoryRecursive(File path, ZipParameters z
110110
}
111111

112112
for (File file : filesAndDirs) {
113-
if (!isFileRegularOrDirectoryOrSymlink(file)) {
114-
continue;
115-
}
116-
117113
if (zipParameters.getExcludeFileFilter() != null && zipParameters.getExcludeFileFilter().isExcluded(file)) {
118114
continue;
119115
}
@@ -595,11 +591,4 @@ private static void addIfBitSet(byte b, int pos, Set<PosixFilePermission> posixF
595591
posixFilePermissions.add(posixFilePermissionToAdd);
596592
}
597593
}
598-
599-
private static boolean isFileRegularOrDirectoryOrSymlink(File file) {
600-
byte[] fileAttributes = getFileAttributes(file);
601-
return BitUtils.isBitSet(fileAttributes[3], 5)
602-
|| BitUtils.isBitSet(fileAttributes[3], 6)
603-
|| BitUtils.isBitSet(fileAttributes[3], 7);
604-
}
605594
}

0 commit comments

Comments
 (0)