{
if (f.isDirectory())
return new FolderSupplier(f);
else if (f.getPath().endsWith(".jar") || f.getPath().endsWith(".zip"))
{
return new ZipOutputSupplier(f);
}
else
throw new IllegalArgumentException("Can only make suppliers out of directories and zips right now!");
}