2017 © Pedro Peláez
 

library dirutils

Directory walking and creation library

image

zingus/dirutils

Directory walking and creation library

  • Friday, February 9, 2018
  • by zingus
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Example

<?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('.');

The Versions

09/02 2018

dev-master

9999999-dev

Directory walking and creation library

  Sources   Download

GPL-3.0-or-later

by Avatar zingus