Code example for AssetManager

Methods: list

0
	    } 
	    return root;
    } 
 
	private AssetManagerFile makeRoot() throws IOException { 
		String[] webRoot = assetManager.list(WEB_ROOT);
		if (webRoot == null || webRoot.length == 0) {
			throw new IOException("AssetManager root dir " + WEB_ROOT + " not found");
		} 
		AssetManagerFile root = new AssetManagerFile(assetManager, WEB_ROOT, null, null, true);
	    try { 
		    buildFiles(assetManager, root);
	    } catch (IOException e) {
		    throw new IllegalStateException("Cannot create asset files system", e);
	    } 
		return root;
	} 
 
	@Override 
	public boolean exists(String path) throws IOException {
		return getFile(path) != null;