We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0a0e49 commit 65708b6Copy full SHA for 65708b6
app/src/processing/app/packages/Library.java
@@ -77,7 +77,11 @@ private static Library createLibrary(File libFolder) throws IOException {
77
// 3. check if root folder contains prohibited stuff
78
for (File file : libFolder.listFiles()) {
79
if (file.isDirectory()) {
80
- if (!SOURCE_CONTROL_FOLDERS.contains(file.getName()) && !OPTIONAL_FOLDERS.contains(file.getName()))
+ if (SOURCE_CONTROL_FOLDERS.contains(file.getName())) {
81
+ System.out.println("WARNING: Ignoring spurious " + file.getName() + " folder in '" + properties.get("name") + "' library");
82
+ continue;
83
+ }
84
+ if (!OPTIONAL_FOLDERS.contains(file.getName()))
85
throw new IOException("Invalid folder '" + file.getName() + "'.");
86
} else {
87
if (!OPTIONAL_FILES.contains(file.getName()))
0 commit comments