osutil

package
v0.12.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyToDir

func CopyToDir(src, dst string) (int64, error)

CopyToDir copies the src file to dst. Existing file will be overwritten.

func WriteFile

func WriteFile(path string, data []byte) error

WriteFile writes to a path with all parent directories created.

func WriteFileWithPermission

func WriteFileWithPermission(path string, data []byte, perm fs.FileMode, overwrite bool) error

WriteFileWithPermission writes to a path with all parent directories created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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