diff --git a/app/src/processing/app/packages/Library.java b/app/src/processing/app/packages/Library.java index 839377448..e70a62e03 100644 --- a/app/src/processing/app/packages/Library.java +++ b/app/src/processing/app/packages/Library.java @@ -31,11 +31,6 @@ public class Library { .asList(new String[] { "architectures", "author", "core-dependencies", "dependencies", "email", "name", "paragraph", "sentence", "url", "version" }); - private static final List OPTIONAL_FOLDERS = Arrays - .asList(new String[] { "arch", "examples", "extras", "src" }); - private static final List OPTIONAL_FILES = Arrays - .asList(new String[] { "keywords.txt", "library.properties" }); - /** * Scans inside a folder and create a Library object out of it. Automatically @@ -74,21 +69,6 @@ public class Library { if (!srcFolder.exists() || !srcFolder.isDirectory()) throw new IOException("Missing 'src' folder"); - // 3. check if root folder contains prohibited stuff - for (File file : libFolder.listFiles()) { - if (file.isDirectory()) { - if (FileUtils.isSCCSOrHiddenFile(file)) { - System.out.println("WARNING: Ignoring spurious " + file.getName() + " folder in '" + properties.get("name") + "' library"); - continue; - } - if (!OPTIONAL_FOLDERS.contains(file.getName())) - throw new IOException("Invalid folder '" + file.getName() + "'."); - } else { - if (!OPTIONAL_FILES.contains(file.getName())) - throw new IOException("Invalid file '" + file.getName() + "'."); - } - } - // Extract metadata info List archs = new ArrayList(); for (String arch : properties.get("architectures").split(","))