Help us shape the future of Go! Take the 2026 Go Developer Survey

stagefile

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package stagefile copies regular files into caller-owned staging directories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(ctx context.Context, source, destination string, mode os.FileMode, buffer []byte) (err error)

Copy creates destination exclusively and preserves source permissions when mode is zero. A reusable buffer avoids per-file allocations. The caller owns cleanup of staged output if copying fails or the context is cancelled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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