src/GuillermoMartinez/Filemanager/Filemanager.php
public function dirInfo($file,$path){
        if($file->isReadable()){
            $item = $this->fileDetails;
            $item["filename"] = $file->getFilename();
            $item["filetype"] = $file->getExtension();
            $item["lastmodified"] = $file->getMTime();
            $item["size"] = $file->getSize();
            $item["filetype"] = '';
            $item["isdir"] = true;
            $item["urlfolder"] = $path.$item["filename"].'/';
            $item['preview'] = '';
            return $item;
        }else{
            return ;
        }
    }
public function dirInfo($file,$path){
        if($file->isReadable()){
            $item = $this->fileDetails;
            $item["filename"] = $file->getFilename();
            $item["filetype"] = $file->getExtension();
            $item["lastmodified"] = $file->getMTime();
            $item["size"] = $file->getSize();
            $item["filetype"] = '';
            $item["isdir"] = true;
            $item["urlfolder"] = $path.$item["filename"].'/';
            $item['preview'] = '';
            return $item;
        }else{
            return ;
        }
    }
public function dirInfo ( $ file , $ path ) { if ( $ file -> isReadable ( ) ) { $ item = $ this -> fileDetails ; $ item [ "filename" ] = $ file -> getFilename ( ) ; $ item [ "filetype" ] = $ file -> getExtension ( ) ; $ item [ "lastmodified" ] = $ file -> getMTime ( ) ; $ item [ "size" ] = $ file -> getSize ( ) ; $ item [ "filetype" ] = '' ; $ item [ "isdir" ] = true ; $ item [ "urlfolder" ] = $ path . $ item [ "filename" ] . '/' ; $ item [ 'preview' ] = '' ; return $ item ; } else { return ; } }
Informacion del directorio
@param  UploadedFile $file
@param  string $path ruta relativa
@return array
Informacion del directorio