8 type UnixLsObject struct {
15 type UnixLsLink struct {
22 type lsOutput struct {
23 Objects map[string]*UnixLsObject
26 // FileList entries at the given path using the UnixFS commands
27 func (s *Shell) FileList(path string) (*UnixLsObject, error) {
29 if err := s.Request("file/ls", path).Exec(context.Background(), &out); err != nil {
33 for _, object := range out.Objects {
37 return nil, fmt.Errorf("no object in results")