/** * Lists the children of the file. Is only called if {@link #doGetType} returns {@link * FileType#FOLDER}. */ @Override protected String[] doListChildren() throws Exception { // VFS-210: do not try to get listing for anything else than directories if (!file.isDirectory()) { return null; } return UriParser.encode(file.list()); }
/** Returns the children of the file. */ @Override protected String[] doListChildren() throws Exception { return UriParser.encode(file.list()); }