retire/catalog.cc
vector<t_dirent> ls(const hash::t_md5 &parent) {
    vector<t_dirent> result;

    pthread_mutex_lock(&mutex);
    result = ls_unprotected(parent);
    pthread_mutex_unlock(&mutex);

    return result;
  }
/**
   * Gets files and directories under parent. Parent may be a file,
   * in this case the returned vector is empty.
   *
   * \return A vector of dirents directly under path parent
   */
Gets files and directories under parent. Parent may be a file,
in this case the returned vector is empty.

\return A vector of dirents directly under path parent
Gets files and directories under parent . Parent may be a file in this case the returned vector is empty . \ return A vector of dirents directly under path parent
vector<t_dirent> ls(const hash::t_md5 &parent) {
    vector<t_dirent> result;
    pthread_mutex_lock(&mutex);
    result = ls_unprotected(parent);
    pthread_mutex_unlock(&mutex);
    return result;
  }
vector < t_dirent > ls ( const hash :: t_md5 & parent ) { vector < t_dirent > result ; pthread_mutex_lock ( & mutex ) ; result = ls_unprotected ( parent ) ; pthread_mutex_unlock ( & mutex ) ; return result ; }
Gets files and directories under parent.
Gets files and directories under parent .