Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addFolder cannot add files or folders under the target folder when run Windows with JDK1.7 #442

Closed
ecool2011 opened this issue Jun 23, 2022 · 1 comment
Labels
bug Something isn't working resolved

Comments

@ecool2011
Copy link

As title,

we use addFolder method to add one folder under windows os and with JDK1.7, the zip file only include the files and folder in the root files.
e.g:
c:\temp\1.xls
c:\temp\2\2.xls

if addFolder(new File("c:\\temp") , then the zip file only include :
c:\temp\1.xls
c:\temp\2

no 2.xls.

but for 2.9.0 version, it works well.

I just checkedthe source code, the problem is FileUtils.isFileRegularOrDirectoryOrSymlink() will return false when check the file under c:\temp\2 folder.

@srikanth-lingala srikanth-lingala added bug Something isn't working resolved labels Jun 23, 2022
@srikanth-lingala
Copy link
Owner

I fixed this in v2.11.1 released today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolved
Projects
None yet
Development

No branches or pull requests

2 participants