From 4b12daab612616e9d1b695b75c4c379dae02c1e1 Mon Sep 17 00:00:00 2001 From: Jake Welton Date: Sat, 11 Jun 2016 21:52:46 +0100 Subject: [PATCH] Add information about custom file extensions --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index a508412..4cfd91b 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,13 @@ catch { } ``` +## Custom File Extensions + +Before unzipping files, the source path is checked to make sure the file type is valid (e.g. the file is a .zip). If the file is not valid then we throw an error, however we understand that there might be some file types you wish to accept, even though it might not exist by default in the supported extensions list. As a result you can add custom file extensions to the list of accepted extensions. +``` +Zip.addCustomFileExtension("file-extension-here") +``` + ### Setting up with Carthage -- 2.26.2