rename

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package rename handles the actual file renaming operations and manages backups for potential undo operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostRename

func PostRename(
	conf *config.Config,
	fileChanges file.Changes,
	renameErr error,
)

PostRename handles actions after a renaming operation, such as printing results, cleaning empty directories, and creating a backup file if applicable.

func Rename

func Rename(
	conf *config.Config,
	fileChanges file.Changes,
) error

Rename renames files according to the provided changes and configuration handling conflicts and backups.

Types

This section is empty.

Jump to

Keyboard shortcuts

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