MCPcopy Index your code
hub / github.com/processing/processing / listPlatformEntries

Method listPlatformEntries

app/src/processing/app/Library.java:267–282  ·  view source on GitHub ↗

List who's inside a windows64, macosx, linux32, etc folder.

(File libraryFolder, String folderName, String[] baseList)

Source from the content-addressed store, hash-verified

265 * List who's inside a windows64, macosx, linux32, etc folder.
266 */
267 static String[] listPlatformEntries(File libraryFolder, String folderName, String[] baseList) {
268 File folder = new File(libraryFolder, folderName);
269 if (folder.exists()) {
270 String[] entries = folder.list(standardFilter);
271 if (entries != null) {
272 String[] outgoing = new String[entries.length + baseList.length];
273 for (int i = 0; i < entries.length; i++) {
274 outgoing[i] = folderName + "/" + entries[i];
275 }
276 // Copy the base libraries in there as well
277 System.arraycopy(baseList, 0, outgoing, entries.length, baseList.length);
278 return outgoing;
279 }
280 }
281 return null;
282 }
283
284
285 static protected HashMap<String, Object> packageWarningMap = new HashMap<>();

Callers 1

handleMethod · 0.95

Calls 2

arraycopyMethod · 0.80
listMethod · 0.45

Tested by

no test coverage detected