Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create creates a new file with O_EXCL flag to ensure atomic creation. Returns error if the file already exists.
func CreateWithBackup ¶
CreateWithBackup creates a new file while preserving the old one as a backup. The backup will have the same name as the original with ".backup" appended. Returns: - temporary file for writing - cleanup function to remove temporary file - commit function to save changes and create backup - error if any
func IsUnsafePath ¶ added in v1.6.0
IsUnsafePath checks if the given path is unsafe to remove
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.