cvs: pear /Tree/Memory Filesystem.php

From: Date: Sat, 24 Aug 2002 20:32:38 +0000
Subject: cvs: pear /Tree/Memory Filesystem.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5932@lists.php.net to get a copy of this message
cain Sat Aug 24 16:32:38 2002 EDT Modified files: /pear/Tree/Memory Filesystem.php Log: - bugfix in setup - add FIXXME comment Index: pear/Tree/Memory/Filesystem.php diff -u pear/Tree/Memory/Filesystem.php:1.1 pear/Tree/Memory/Filesystem.php:1.2 --- pear/Tree/Memory/Filesystem.php:1.1 Fri Aug 23 13:18:06 2002 +++ pear/Tree/Memory/Filesystem.php Sat Aug 24 16:32:38 2002 @@ -16,7 +16,7 @@ // | Authors: Wolfram Kriesing <wolfram@kriesing.de> | // +----------------------------------------------------------------------+ // -// $Id: Filesystem.php,v 1.1 2002/08/23 17:18:06 cain Exp $ +// $Id: Filesystem.php,v 1.2 2002/08/24 20:32:38 cain Exp $ require_once('Tree/Error.php'); @@ -93,6 +93,7 @@ */ function setup() { + unset($this->data); // unset the data to be sure to get the real data again, no old data if( is_dir($this->_path) ) { $this->data[$this->_path] = array('id'=>$this->_path,'name'=>$this->_path,'parentId'=>0); @@ -148,6 +149,7 @@ function copy( $srcId , $destId ) { # if( !@copy( $srcId , $destId ) ) this would only be for files :-) +# FIXXME loop through the directory to copy the children too !!! $dest = $destId.'/'.preg_replace('/^.*\//','',$srcId);

« previous php.pear.cvs (#5932) next »