Documentation
¶
Overview ¶
Package fsx holds small filesystem helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
CopyDir copies the regular files and directories of src into dst, preserving permissions. Other file types are skipped.
func TryLock ¶
TryLock takes an exclusive advisory lock on path without blocking. ok is false when another process holds it.
func WriteFileAtomic ¶
WriteFileAtomic writes data to a temporary file next to path, then renames it, so readers never see a partial file. If path is a symlink (e.g. a dotfiles-managed config), its target is written and the link is kept.
Types ¶
This section is empty.