public function fileDetails($path)
    {
        $path = '/'.ltrim($path, '/');

        return [
            'name'     => basename($path),
            'fullPath' => $path,
            'webPath'  => $this->fileWebPath($path),
            'mimeType' => $this->fileMimeType($path),
            'size'     => $this->fileSize($path),
        ];
    }
public function fileDetails($path)
    {
        $path = '/'.ltrim($path, '/');

        return [
            'name'     => basename($path),
            'fullPath' => $path,
            'webPath'  => $this->fileWebPath($path),
            'mimeType' => $this->fileMimeType($path),
            'size'     => $this->fileSize($path),
        ];
    }
public function fileDetails ( $ path ) { $ path = '/' . ltrim ( $ path , '/' ) ; return [ 'name' => basename ( $ path ) , 'fullPath' => $ path , 'webPath' => $ this -> fileWebPath ( $ path ) , 'mimeType' => $ this -> fileMimeType ( $ path ) , 'size' => $ this -> fileSize ( $ path ) , ] ; }
Return an array of file details for a file.

@param $path

@return array
Return an array of file details for a file .