# Functions
BackupNameNumeric produces a backup name generator that injects a numbered suffix into the original filename:
- first backup: file<suffix>.ext - n-th backup: file<suffix>_n.ext - stops after max_attempts if generated filenames are already claimed by existing files.
BackupNameTimestamp produces a backup name generator that injects a timestamp suffix into the original filename:
- naming pattern: file<suffix>timestamp.ext - uses time.Now().Format(timestamp_format) - stops after max_attempts if generated filenames are already claimed by existing files.
No description provided by the author
No description provided by the author
No description provided by the author
DirExists returns true if a directory exists at the specified location.
FileContentMatch checks if the file has content that matches the specified data.
FileExists returns true if a file exists at the specified location.
JoinPathList joins multiple paths into a string with OS-specific path separator.
MakeWriteFileFeedback is a feedback example (use with os.Stdout or os.Stderr).
No description provided by the author
NormalizePathsToSlash normalizes a list of file paths: - removes empty paths - converts separators to slashes - removes duplicates - sorts lexicographically.
ReadJSONFile is a version of json.Unmarshal that reads content from a file and ammends returned errors with location information (file:col:row).
ResolvesToSameFile returns true if the two paths resolve to the same actual file.
SearchDir returns the list of paths within the specified directory that pass through the 'accept' callback.
SearchFilesAndSymlinks scans the provided set of directories and returns absolute filenames that pass through a functional 'accept' filter.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WriteFile writes data to the named file with configurable behavior and feedback.
WriteFileEx writes data to the named file with configurable behavior and feedback, provides detailed status.
WriteFileIfChanged writes data to a file.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Error Codes.
Error Codes.
Error Codes.
Error Codes.
Error Codes.
Error Codes.
Error Codes.
Error Codes.
Error Codes.
Error Codes.
# Structs
WriteFileEntry is an entry in WriteFileSet.
WriteFileset bundles multiple pending file write operations together.
WriteOptions provides detailed configuration for tuning WriteFile behavior.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author