directory

package
v20.10.26+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 495

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MoveToSubdir added in v1.9.0

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL