func (r *SecureFile) List(rootpath string) (*api.SecureFilesResponse, error) {
	resp, err := r.c.DoRequest(http.MethodGet,
		path.Join(secureFileListBasePath, rootpath)+"/",
		map[string]string{
			"list": "true",
		},
		nil)
	if resp != nil {
		defer resp.Body.Close()
	}
	if err != nil {
		return nil, fmt.Errorf("error while trying to get secure files: %v", err)
	}
	if resp.StatusCode != http.StatusOK {
		return nil, fmt.Errorf("error while trying to list secure files. Got HTTP status code %d",
			resp.StatusCode)
	}
	sfr := &api.SecureFilesResponse{}
	err = parseResponse(resp.Body, sfr)
	if err != nil {
		return nil, err
	}
	return sfr, nil
}
List returns a list of secure files
package cerberus
import (
	"bytes"
	"fmt"
	"io"
	"mime/multipart"
	"net/http"
	"path"
	"github.com/Nike-Inc/cerberus-go-client/api"
)
type SecureFile struct {
	c *Client
}
var secureFileBasePath = "/v1/secure-file"
var secureFileListBasePath = "/v1/secure-files"