fsutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package fsutil provides small filesystem helpers shared across packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenameWithRetry

func RenameWithRetry(src, dst string, rename func(src, dst string) error) error

RenameWithRetry renames src to dst, retrying briefly on Windows when the destination is transiently locked (antivirus scanners, search indexers, or a concurrent reader holding the file open). rename overrides os.Rename so tests can exercise the retry path; pass nil to use os.Rename.

Types

This section is empty.

Jump to

Keyboard shortcuts

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