Code example for File

Methods: isDirectory, list

0
    public final void __constructor__() { 
    } 
 
    @Implementation 
    public final String[] list(String path) throws IOException {
        File file = new File(appManifest.getAssetsDirectory(), path);
        if (file.isDirectory()) {
            return file.list();
        } 
        return new String[0];
    } 
 
    @Implementation 
    public final InputStream open(String fileName) throws IOException {
        return new FileInputStream(new File(appManifest.getAssetsDirectory(), fileName));
    } 
 
}