Created
March 7, 2016 12:55
-
-
Save rwoloszyn/42dfae75abb2767a9336 to your computer and use it in GitHub Desktop.
Get file extensions in Java using Apache I/O
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//If file is compressed uncompress it | |
if(FilenameUtils.getExtension(file.getAbsolutePath()) | |
.equals("zip")){ | |
logger.debug("file={}, unzipping", | |
file.getAbsolutePath()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment