src/Collection.php
public function remove($path)
    {
        if ($this->contains($path)) {
            $item = $this->items[$path];
            $item['instance']->removePathListener($item['listener_index']);
            unset($this->items[$path]);
        }
        return $this;
    }
public function remove($path)
    {
        if ($this->contains($path)) {
            $item = $this->items[$path];
            $item['instance']->removePathListener($item['listener_index']);
            unset($this->items[$path]);
        }
        return $this;
    }
public function remove ( $ path ) { if ( $ this -> contains ( $ path ) ) { $ item = $ this -> items [ $ path ] ; $ item [ 'instance' ] -> removePathListener ( $ item [ 'listener_index' ] ) ; unset ( $ this -> items [ $ path ] ) ; } return $ this ; }
Removes a file or directory from the collection.

@param  string $path
@return self
Removes a file or directory from the collection .