daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getDirectories(){
  2.     $contenido=scandir($this->ruta);
  3.     $directories=[];
  4.     foreach ($contenido as $dir) {
  5.          var_dump($dir);
  6.          var_dump(filetype($dir));
  7.         if(filetype($dir)=='dir' && (!$dir=='.'|| !$dir=='..')){
  8.             $directories[]=$dir;
  9.           }
  10.     }
  11.     $this->directories=$directories;
  12.     return  $directories;
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top