// List the objects and directories in dir into entries.  The
// entries can be returned in any order but should be for a
// complete directory.
//
// dir should be "" to list the root, and should not have
// trailing slashes.
//
// This should return ErrDirNotFound if the directory isn't
// found.
List the objects and directories in dir into entries.  The
entries can be returned in any order but should be for a
complete directory.

dir should be "" to list the root, and should not have
trailing slashes.

This should return ErrDirNotFound if the directory isn't
found.
// List the objects and directories in dir into entries . The // entries can be returned in any order but should be for a // complete directory . // // dir should be " " to list the root and should not have // trailing slashes . // // This should return ErrDirNotFound if the directory isn ' t // found .
func (f *Fs) List(dir string) (entries fs.DirEntries, err error) {
	var iErr error
	_, err = f.listAll(dir, false, false, defaultDepth, func(remote string, isDir bool, info *api.Prop) bool {
		if isDir {
			d := fs.NewDir(remote, time.Time(info.Modified))
			entries = append(entries, d)
		} else {
			o, err := f.newObjectWithInfo(remote, info)
			if err != nil {
				iErr = err
				return true
			}
			entries = append(entries, o)
		}
		return false
	})
	if err != nil {
		return nil, err
	}
	if iErr != nil {
		return nil, iErr
	}
	return entries, nil
}
func ( f * Fs ) List ( dir string ) ( entries fs . DirEntries , err error ) { var iErr error _ , err = f . listAll ( dir , false , false , defaultDepth , func ( remote string , isDir bool , info * api . Prop ) bool { if isDir { d := fs . NewDir ( remote , time . Time ( info . Modified ) ) entries = append ( entries , d ) } else { o , err := f . newObjectWithInfo ( remote , info ) if err != nil { iErr = err return true } entries = append ( entries , o ) } return false } ) if err != nil { return nil , err } if iErr != nil { return nil , iErr } return entries , nil }
List the objects and directories in dir into entries.
List the objects and directories in dir into entries .
// .SetID(info.ID) // FIXME more info from dir? can set size, items?