private function _get_path()
    {

        if (empty($this->file) && is_string($this->file)) return false;

        if (strpos($this->file, '/') !== false) {
            $path = explode('/', $this->file);
            array_pop($path);
            $this->path = (string)implode('/', $path) . '/';
        } elseif (strpos('\\', $this->file) !== false) {
            $path = explode('\\', $this->file);
            array_pop($path);
            $this->path = (string)implode('\\', $path) . '\\';
        } else {
            $this->path = getcwd() . '/';
        }

        return true;
    }
private function _get_path()
    {

        if (empty($this->file) && is_string($this->file)) return false;

        if (strpos($this->file, '/') !== false) {
            $path = explode('/', $this->file);
            array_pop($path);
            $this->path = (string)implode('/', $path) . '/';
        } elseif (strpos('\\', $this->file) !== false) {
            $path = explode('\\', $this->file);
            array_pop($path);
            $this->path = (string)implode('\\', $path) . '\\';
        } else {
            $this->path = getcwd() . '/';
        }

        return true;
    }
private function _get_path ( ) { if ( empty ( $ this -> file ) && is_string ( $ this -> file ) ) return false ; if ( strpos ( $ this -> file , '/' ) !== false ) { $ path = explode ( '/' , $ this -> file ) ; array_pop ( $ path ) ; $ this -> path = ( string ) implode ( '/' , $ path ) . '/' ; } elseif ( strpos ( '\\' , $ this -> file ) !== false ) { $ path = explode ( '\\' , $ this -> file ) ; array_pop ( $ path ) ; $ this -> path = ( string ) implode ( '\\' , $ path ) . '\\' ; } else { $ this -> path = getcwd ( ) . '/' ; } return true ; }
gets the filename out of the entered path

@return bool
gets the filename out of the entered path