@Override
	public Collection<File> getData(String path, String repoSelection) {
		// TODO Auto-generated method stub
		File mdstore = new File(path);
		List<File> files = new ArrayList<>();

		if (!mdstore.isDirectory()) {
			System.err.println("This is not a directory");
			System.err.println("Exiting...");
			return null;
		} else {

			if (repoSelection.equals("*")) {
				File[] providersDirs = mdstore.listFiles();

				for (int i = 0; i < providersDirs.length; i++) {
					File prDir = providersDirs[i];
					if (prDir.isDirectory())
						files.add(prDir);
				}
			} else {
				String[] repos = repoSelection.split(",");
				for (int i = 0; i < repos.length; i++) {
					File repo = new File(mdstore, repos[i]);

					if (repo != null && repo.isDirectory()) {
						files.add(repo);
					} else
						continue;
				}
			}

			return files;
		}

	}