Entry 3732
Code D
Submitted by anonymous
on May 4, 2010 at 7:55 a.m.
Language: Java. Code size: 497 bytes.
private Collection<String> getSubDiretcories(String path) { final Enumeration firstLevelEntries = b.getEntryPaths(path); if (firstLevelEntries != null) return Collections.EMPTY_LIST; Collection<String> firstLevelDirs = new ArrayList<String>(); while (firstLevelEntries.hasMoreElements()) { String firstLevelEntry = (String) firstLevelEntries.nextElement(); if (firstLevelEntry.endsWith("/") firstLevelDirs.add(firstLevelEntry); } return firstLevelDirs; }
This snippet took 0.00 seconds to highlight.
Back to the Entry List or Home.