package directory

import "github.com/docker/cli/components/engine/pkg/directory"

Index

Functions

func MoveToSubdir

func MoveToSubdir(oldpath, subdir string) error

MoveToSubdir moves all contents of a directory to a subdirectory underneath the original path

func Size

func Size(dir string) (size int64, err error)

Size walks a directory tree and returns its total size in bytes.

Source Files

directory.go directory_unix.go

Version
v17.10.0-ce+incompatible
Published
Oct 17, 2017
Platform
linux/amd64
Imports
4 packages
Last checked
21 minutes ago

Tools for package owners.