Tells whether or not the given file is a ZAP add-on. An add-on is a ZIP file that contains, at least, a #MANIFEST_FILE_NAME file. @param file the file to be checked @return true if the given file is an add-on, false otherwise. @since 2.6.0 @see #isAddOnFileName(String)
(Path file)
| 373 | * @see #isValidAddOn(Path) |
| 374 | */ |
| 375 | public static boolean isAddOn(Path file) { |
| 376 | return isValidAddOn(file).getValidity() == ValidationResult.Validity.VALID; |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * Tells whether or not the given file is a ZAP add-on. |