@Override
	public String[] getItemNames(String folderPath, boolean includeHiddenFiles) throws IOException {
		if (readOnly) {
			refreshReadOnlyIndex();
		}
		try {
			Folder folder = getFolder(folderPath, GetFolderOption.READ_ONLY);
			Set<String> nameSet = folder.items.keySet();
			int count = nameSet.size();
			ArrayList<String> fileList = new ArrayList<>(count);
			for (String name : nameSet) {
				if (includeHiddenFiles || !name.startsWith(HIDDEN_ITEM_PREFIX)) {
					fileList.add(name);
				}
			}
			return fileList.toArray(new String[fileList.size()]);
		}
		catch (NotFoundException e) {
			throw new FileNotFoundException("Folder not found: " + folderPath);
		}
	}
Deallocate item storage
@param folderPath
@param itemName
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/local/IndexedLocalFileSystem.java