package directory

import "github.com/docker/docker/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(ctx context.Context, 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
v20.10.1+incompatible
Published
Dec 15, 2020
Platform
linux/amd64
Imports
5 packages
Last checked
7 minutes ago

Tools for package owners.