Vector tmp = new Vector(); for (int i = 0; i < directories; i++) tmp.add(contents.get(i)); return tmp;
synchronized (contents) { Vector dirs = directories; if (dirs == null) {  getFiles(); dirs = directories; } return dirs; }
  public Vector getDirectories()  {    Vector tmp = new Vector();    for (int i = 0; i < directories; i++)      tmp.add(contents.get(i));    return tmp;  }