mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
26659d5eb8
This utility was added in442b45628e
as part of user-namespaces, and first used in44e1023a93
to set up the daemon root, and move the existing content;44e1023a93/daemon/daemon_experimental.go (L68-L71)
A later iteration no longer _moved_ the existing root directory, and removed the use of `directory.MoveToSubdir()`e8532023f2
It looks like there's no external consumers of this utility, so we should be save to remove it. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
8 lines
245 B
Go
8 lines
245 B
Go
package directory // import "github.com/docker/docker/pkg/directory"
|
|
|
|
import "context"
|
|
|
|
// Size walks a directory tree and returns its total size in bytes.
|
|
func Size(ctx context.Context, dir string) (int64, error) {
|
|
return calcSize(ctx, dir)
|
|
}
|