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

rename

package
v1.3.97 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package rename pkg/util/rename/rename.go c0-com-util

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rename

func Rename(oldPath, newPath string) error

Rename renames (moves) oldPath to newPath using os.Rename. If paths are located on different drives or filesystems, os.Rename fails. In that case, Rename uses a workaround by copying oldPath to newPath and removing oldPath thereafter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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