public function load()
    {
        $files = scandir($this->getPath());

        foreach($files as $file) {
            if(
                $file === "." ||
                $file === ".."
            ) {
                continue;
            }

            if(is_file($this->getPath().$file)) {
                $this->_files[$file] = $file;
            } else if(is_dir($this->getPath().$file)) {
                $this->_directories[$file] = $file;
            }
        }
    }
public function load()
    {
        $files = scandir($this->getPath());

        foreach($files as $file) {
            if(
                $file === "." ||
                $file === ".."
            ) {
                continue;
            }

            if(is_file($this->getPath().$file)) {
                $this->_files[$file] = $file;
            } else if(is_dir($this->getPath().$file)) {
                $this->_directories[$file] = $file;
            }
        }
    }
public function load ( ) { $ files = scandir ( $ this -> getPath ( ) ) ; foreach ( $ files as $ file ) { if ( $ file === "." || $ file === ".." ) { continue ; } if ( is_file ( $ this -> getPath ( ) . $ file ) ) { $ this -> _files [ $ file ] = $ file ; } else if ( is_dir ( $ this -> getPath ( ) . $ file ) ) { $ this -> _directories [ $ file ] = $ file ; } } }
Loads directories and files.
Loads directories and files .