| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8751f6f commit df8c827
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -102,6 +102,11 @@ public void run() { | |||
| 102 | 102 | public void fileSelected(File newbie) { | |
| 103 | 103 | if (newbie != null) { | |
| 104 | 104 | try { | |
| 105 | + // Force a .zip extension | ||
| 106 | + // https://github.com/processing/processing/issues/2526 | ||
| 107 | + if (!newbie.getName().toLowerCase().endsWith(".zip")) { | ||
| 108 | + newbie = new File(newbie.getAbsolutePath() + ".zip"); | ||
| 109 | + } | ||
| 105 | 110 | //System.out.println(newbie); | |
| 106 | 111 | FileOutputStream zipOutputFile = new FileOutputStream(newbie); | |
| 107 | 112 | ZipOutputStream zos = new ZipOutputStream(zipOutputFile); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments