zingus/dirutils

Directory walking and creation library

dev-master 2018-02-09 18:50 UTC

This package is not auto-updated.

Last update: 2024-06-04 23:44:00 UTC


README

<?php

require_once "vendor\autoload.php";
use DirUtils\Walker;

class walker extends Walker {
  function action($filename) {
    // ...
    // do something with $filename
    // ...
    // the path from which the walk started is $this->root
    // $filename is relative to $this->root
    // the full path of the $filename is $this->full

    echo "$this->root \t $filename \t $this->full\n";
  }
}

$foobar=new foobar();
$foobar->walk('.');