code: func (d *driver) Stat(ctx context.Context, path string) (storagedriver.FileInfo, error) {
  	resp, err := d.S3.ListObjects(&s3.ListObjectsInput{
  		Bucket:  aws.String(d.Bucket),
  		Prefix:  aws.String(d.s3Path(path)),
  		MaxKeys: aws.Int64(1),
  	})
  	if err != nil {
  		return nil, err
  	}
  
  	fi := storagedriver.FileInfoFields{
  		Path: path,
  	}
  
  	if len(resp.Contents) == 1 {
  		if *resp.Contents[0].Key != d.s3Path(path) {
  			fi.IsDir = true
  		} else {
  			fi.IsDir = false
  			fi.Size = *resp.Contents[0].Size
  			fi.ModTime = *resp.Contents[0].LastModified
  		}
  	} else if len(resp.CommonPrefixes) == 1 {
  		fi.IsDir = true
  	} else {
  		return nil, storagedriver.PathNotFoundError{Path: path}
  	}
  
  	return storagedriver.FileInfoInternal{FileInfoFields: fi}, nil
  }
docs: // Stat retrieves the FileInfo for the given path, including the current size
  // in bytes and the creation time.