Added better logging for recursive compressed file search
This commit is contained in:
parent
1c1ef5ab66
commit
c196a7cca0
1 changed files with 7 additions and 1 deletions
|
|
@ -172,13 +172,19 @@ public class FileSearcher implements Iterable<FileSearcher.FileSearchItem>{
|
||||||
compressedFileExtensions.contains(
|
compressedFileExtensions.contains(
|
||||||
FileUtil.getFileExtension(file.getName()).toLowerCase())){
|
FileUtil.getFileExtension(file.getName()).toLowerCase())){
|
||||||
try {
|
try {
|
||||||
/*ZipInputStream zipInputStream = new ZipInputStream(new FileInputStream(file.getPath()));
|
/* TODO: Implement recursive file search
|
||||||
|
ZipInputStream zipInputStream = new ZipInputStream(new FileInputStream(file.getPath()));
|
||||||
ZipEntry entry;
|
ZipEntry entry;
|
||||||
|
|
||||||
while ((entry = zipInputStream.getNextEntry()) != null) {
|
while ((entry = zipInputStream.getNextEntry()) != null) {
|
||||||
fileList.add(new FileSearchZipItem(file.getPath(), entry));
|
fileList.add(new FileSearchZipItem(file.getPath(), entry));
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
if (file.isCompressed()) {
|
||||||
|
logger.warning("Recursive compressed file search not supported. File: " + file.getPath());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
ZipFile zipFile = new ZipFile(file.getPath());
|
ZipFile zipFile = new ZipFile(file.getPath());
|
||||||
Enumeration<? extends ZipEntry> e = zipFile.entries();
|
Enumeration<? extends ZipEntry> e = zipFile.entries();
|
||||||
while(e.hasMoreElements()){
|
while(e.hasMoreElements()){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue