You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: directory.go
    path of file: ./repos/octant/vendor/github.com/containers/storage/pkg/directory
    
    the code of the file until where you have to start completion: package directory

import (
	"io/ioutil"
	"os"
	"path/filepath"
)

// DiskUsage is a structure that describes the disk usage (size and inode count)
// of a particular directory.
type DiskUsage struct {
	Size       int64
	InodeCount int64
}

// MoveToSubdir moves all contents of a director
    
func MoveToSubdir(oldpath, subdir string) error {
	infos, err := ioutil.ReadDir(oldpath)
	if err != nil {
		return err
	}
	for _, info := range infos {
		if info.Name() != subdir {
			oldName := filepath.Join(oldpath, info.Name())
			newName := filepath.Join(oldpath, subdir, info.Name())
			if err := os.Rename(oldName, newName); err != nil {
				return err
			}
		}
	}
	return nil
}