replacefile

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package replacefile implements access to the ReplaceFile Win32 API.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnableToMoveReplacement  error = errOnlyWindows
	ErrUnableToMoveReplacement2 error = errOnlyWindows
	ErrUnableToRemoveReplaced   error = errOnlyWindows
)

Functions

func ReplaceFile

func ReplaceFile(replaced string, replacement string, backup string, flags Flag) error

Types

type Flag

type Flag uint32
const (
	IgnoreMergeErrors Flag = 0x2
	IgnoreACLErrors   Flag = 0x4
)

Jump to

Keyboard shortcuts

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