blob: 7b8d74a356e41d3a94b28205ef39526708934589 [file] [log] [blame]
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)
}