Example #1
0
 /**
  * List extended attributes of a file/directory
  *
  * @access public
  *
  * @param $path file path
  * @param $retval file name array of extended attributes
  */
 function listxattr($path, &$retval)
 {
     Log::in("LISTXATTR {$path}");
     /* Check for passthru */
     if (PassThru::check($path)) {
         $ret = PassThru::listxattr($path, $retval);
     } else {
         $pi = Query::pathInfo($path);
         Query::fillContentId($pi, 0);
         $ret = Query::listxattr($pi, $retval);
         if ($ret == 0) {
             Query::resolveAttributes($retval);
         }
     }
     Log::out("LISTXATTR");
     return $ret;
 }