private void updateAvailableScriptFilesForDirectory(List<ResourceFile> scriptAccumulator,
			ResourceFile directory) {
		ResourceFile[] files = directory.listFiles();
		if (files == null) {
			return;
		}

		for (ResourceFile scriptFile : files) {
			if (scriptFile.isFile() && GhidraScriptUtil.hasScriptProvider(scriptFile)) {
				scriptAccumulator.add(scriptFile);
			}
		}

	}
Loads and manages updating of available script files.
<p>
Use the {@link #refresh()} method to reload the script files.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/script/ScriptList.java