예제 #1
0
  /**
   * 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());
  }
예제 #2
0
 /** Returns the children of the file. */
 @Override
 protected String[] doListChildren() throws Exception {
   return UriParser.encode(file.list());
 }