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

        return [
            'name'         => basename($path),
            'fullPath'     => $path,
            'webPath'      => $this->fileWebpath($path),
            'mimeType'     => $this->fileMimeType($path),
            'size'         => $this->fileSize($path),
            'modified'     => $this->fileModified($path),
            'relativePath' => $this->fileRelativePath($path),
        ];
    }
protected function fileDetails($path)
    {
        $path = '/'.ltrim($path, '/');

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

@param $path

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