public BundleEntry getEntry(String path) { File filePath = getFile(path, false); if (filePath == null) return null; return new FileBundleEntry(filePath, path); }
public BundleEntry getEntry(String path) { File filePath = getFile(path, false); if (filePath == null) return null; return new FileBundleEntry(filePath, path); }
public BundleEntry getEntry(String path) { File filePath = getFile(path, false); if (filePath == null) return null; return new FileBundleEntry(filePath, path); }
public BundleEntry getEntry(String path) { File filePath = getFile(path, false); if (filePath == null) return null; return new FileBundleEntry(filePath, path); }
public BundleEntry getEntry(String path) { File filePath = getFile(path, false); if (filePath == null) return null; return new FileBundleEntry(filePath, path); }
public BundleEntry getEntry(String path) { File filePath = getFile(path, false); if (filePath == null) return null; return new FileBundleEntry(filePath, path); }
public boolean containsDir(String dir) { File dirPath = getFile(dir, false); return dirPath != null && BundleFile.secureAction.isDirectory(dirPath); }
public boolean containsDir(String dir) { File dirPath = getFile(dir, false); return dirPath != null && BundleFile.secureAction.isDirectory(dirPath); }
public boolean containsDir(String dir) { File dirPath = getFile(dir, false); return dirPath != null && BundleFile.secureAction.isDirectory(dirPath); }
public boolean containsDir(String dir) { File dirPath = getFile(dir, false); return dirPath != null && BundleFile.secureAction.isDirectory(dirPath); }
public boolean containsDir(String dir) { File dirPath = getFile(dir, false); return dirPath != null && BundleFile.secureAction.isDirectory(dirPath); }
public boolean containsDir(String dir) { File dirPath = getFile(dir, false); return dirPath != null && BundleFile.secureAction.isDirectory(dirPath); }
public Enumeration<String> getEntryPaths(String path, boolean recurse) { if (path.length() > 0 && path.charAt(0) == '/') path = path.substring(1); File pathFile = getFile(path, false); if (pathFile == null || !BundleFile.secureAction.isDirectory(pathFile)) return null; String[] fileList = BundleFile.secureAction.list(pathFile); if (fileList == null || fileList.length == 0) return null; String dirPath = path.length() == 0 || path.charAt(path.length() - 1) == '/' ? path : path + '/'; LinkedHashSet<String> entries = new LinkedHashSet<>(); for (String s : fileList) { java.io.File childFile = new java.io.File(pathFile, s); StringBuilder sb = new StringBuilder(dirPath).append(s); if (BundleFile.secureAction.isDirectory(childFile)) { sb.append("/"); //$NON-NLS-1$ if (recurse) { Enumeration<String> e = getEntryPaths(sb.toString(), true); if (e != null) entries.addAll(Collections.list(e)); } } entries.add(sb.toString()); } return Collections.enumeration(entries); }
public Enumeration<String> getEntryPaths(String path, boolean recurse) { if (path.length() > 0 && path.charAt(0) == '/') path = path.substring(1); File pathFile = getFile(path, false); if (pathFile == null || !BundleFile.secureAction.isDirectory(pathFile)) return null; String[] fileList = BundleFile.secureAction.list(pathFile); if (fileList == null || fileList.length == 0) return null; String dirPath = path.length() == 0 || path.charAt(path.length() - 1) == '/' ? path : path + '/'; LinkedHashSet<String> entries = new LinkedHashSet<String>(); for (String s : fileList) { java.io.File childFile = new java.io.File(pathFile, s); StringBuilder sb = new StringBuilder(dirPath).append(s); if (BundleFile.secureAction.isDirectory(childFile)) { sb.append("/"); //$NON-NLS-1$ if (recurse) { Enumeration<String> e = getEntryPaths(sb.toString(), true); if (e != null) entries.addAll(Collections.list(e)); } } entries.add(sb.toString()); } return Collections.enumeration(entries); }
public Enumeration<String> getEntryPaths(String path, boolean recurse) { if (path.length() > 0 && path.charAt(0) == '/') path = path.substring(1); File pathFile = getFile(path, false); if (pathFile == null || !BundleFile.secureAction.isDirectory(pathFile)) return null; String[] fileList = BundleFile.secureAction.list(pathFile); if (fileList == null || fileList.length == 0) return null; String dirPath = path.length() == 0 || path.charAt(path.length() - 1) == '/' ? path : path + '/'; LinkedHashSet<String> entries = new LinkedHashSet<String>(); for (String s : fileList) { java.io.File childFile = new java.io.File(pathFile, s); StringBuilder sb = new StringBuilder(dirPath).append(s); if (BundleFile.secureAction.isDirectory(childFile)) { sb.append("/"); //$NON-NLS-1$ if (recurse) { Enumeration<String> e = getEntryPaths(sb.toString(), true); if (e != null) entries.addAll(Collections.list(e)); } } entries.add(sb.toString()); } return Collections.enumeration(entries); }
public Enumeration<String> getEntryPaths(String path, boolean recurse) { if (path.length() > 0 && path.charAt(0) == '/') path = path.substring(1); File pathFile = getFile(path, false); if (pathFile == null || !BundleFile.secureAction.isDirectory(pathFile)) return null; String[] fileList = BundleFile.secureAction.list(pathFile); if (fileList == null || fileList.length == 0) return null; String dirPath = path.length() == 0 || path.charAt(path.length() - 1) == '/' ? path : path + '/'; LinkedHashSet<String> entries = new LinkedHashSet<String>(); for (String s : fileList) { java.io.File childFile = new java.io.File(pathFile, s); StringBuilder sb = new StringBuilder(dirPath).append(s); if (BundleFile.secureAction.isDirectory(childFile)) { sb.append("/"); //$NON-NLS-1$ if (recurse) { Enumeration<String> e = getEntryPaths(sb.toString(), true); if (e != null) entries.addAll(Collections.list(e)); } } entries.add(sb.toString()); } return Collections.enumeration(entries); }
public Enumeration<String> getEntryPaths(String path, boolean recurse) { if (path.length() > 0 && path.charAt(0) == '/') path = path.substring(1); File pathFile = getFile(path, false); if (pathFile == null || !BundleFile.secureAction.isDirectory(pathFile)) return null; String[] fileList = BundleFile.secureAction.list(pathFile); if (fileList == null || fileList.length == 0) return null; String dirPath = path.length() == 0 || path.charAt(path.length() - 1) == '/' ? path : path + '/'; LinkedHashSet<String> entries = new LinkedHashSet<String>(); for (String s : fileList) { java.io.File childFile = new java.io.File(pathFile, s); StringBuilder sb = new StringBuilder(dirPath).append(s); if (BundleFile.secureAction.isDirectory(childFile)) { sb.append("/"); //$NON-NLS-1$ if (recurse) { Enumeration<String> e = getEntryPaths(sb.toString(), true); if (e != null) entries.addAll(Collections.list(e)); } } entries.add(sb.toString()); } return Collections.enumeration(entries); }
public Enumeration<String> getEntryPaths(String path, boolean recurse) { if (path.length() > 0 && path.charAt(0) == '/') path = path.substring(1); File pathFile = getFile(path, false); if (pathFile == null || !BundleFile.secureAction.isDirectory(pathFile)) return null; String[] fileList = BundleFile.secureAction.list(pathFile); if (fileList == null || fileList.length == 0) return null; String dirPath = path.length() == 0 || path.charAt(path.length() - 1) == '/' ? path : path + '/'; LinkedHashSet<String> entries = new LinkedHashSet<>(); for (String s : fileList) { java.io.File childFile = new java.io.File(pathFile, s); StringBuilder sb = new StringBuilder(dirPath).append(s); if (BundleFile.secureAction.isDirectory(childFile)) { sb.append("/"); //$NON-NLS-1$ if (recurse) { Enumeration<String> e = getEntryPaths(sb.toString(), true); if (e != null) entries.addAll(Collections.list(e)); } } entries.add(sb.toString()); } return Collections.enumeration(entries); }