public function parents($hash, $lineal = false) {
		if (($current = $this->dir($hash)) == false) {
			return false;
		}

		$path = $this->decode($hash);
		$tree = array();
		
		while ($path && $path != $this->root) {
			$path = $this->dirnameCE($path);
			$stat = $this->stat($path);
			if (!empty($stat['hidden']) || !$stat['read']) {
				return false;
			}
			
			array_unshift($tree, $stat);
			if (!$lineal) {
				foreach ($this->gettree($path, 0) as $dir) {
					if (!in_array($dir, $tree)) {
						$tree[] = $dir;
					}
				}
			}
		}

		return $tree ? $tree : array($current);
	}
public function parents($hash, $lineal = false) {
		if (($current = $this->dir($hash)) == false) {
			return false;
		}

		$path = $this->decode($hash);
		$tree = array();
		
		while ($path && $path != $this->root) {
			$path = $this->dirnameCE($path);
			$stat = $this->stat($path);
			if (!empty($stat['hidden']) || !$stat['read']) {
				return false;
			}
			
			array_unshift($tree, $stat);
			if (!$lineal) {
				foreach ($this->gettree($path, 0) as $dir) {
					if (!in_array($dir, $tree)) {
						$tree[] = $dir;
					}
				}
			}
		}

		return $tree ? $tree : array($current);
	}
public function parents ( $ hash , $ lineal = false ) { if ( ( $ current = $ this -> dir ( $ hash ) ) == false ) { return false ; } $ path = $ this -> decode ( $ hash ) ; $ tree = array ( ) ; while ( $ path && $ path != $ this -> root ) { $ path = $ this -> dirnameCE ( $ path ) ; $ stat = $ this -> stat ( $ path ) ; if ( ! empty ( $ stat [ 'hidden' ] ) || ! $ stat [ 'read' ] ) { return false ; } array_unshift ( $ tree , $ stat ) ; if ( ! $ lineal ) { foreach ( $ this -> gettree ( $ path , 0 ) as $ dir ) { if ( ! in_array ( $ dir , $ tree ) ) { $ tree [ ] = $ dir ; } } } } return $ tree ? $ tree : array ( $ current ) ; }
Return part of dirs tree from required dir up to root dir

@param  string    $hash   directory hash
@param  bool|null $lineal only lineal parents
@return array
@author Dmitry (dio) Levashov
Return part of dirs tree from required dir up to root dir