public function file($path)
    {
        return $this->files(dirname($path))->first(function ($file) use ($path) {
            return $file['path'] === $path;
        }, function () use ($path) {
            throw new FileNotFoundException("File [$path] not found!");
        });
    }
public function file($path)
    {
        return $this->files(dirname($path))->first(function ($file) use ($path) {
            return $file['path'] === $path;
        }, function () use ($path) {
            throw new FileNotFoundException("File [$path] not found!");
        });
    }
public function file ( $ path ) { return $ this -> files ( dirname ( $ path ) ) -> first ( function ( $ file ) use ( $ path ) { return $ file [ 'path' ] === $ path ; } , function ( ) use ( $ path ) { throw new FileNotFoundException ( "File [$path] not found!" ) ; } ) ; }
Get the file details.

@param  string  $path

@return array
Get the file details .