Documentation
¶
Overview ¶
Package fsutil holds small filesystem helpers shared across koder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanAbs ¶
CleanAbs returns path as a cleaned absolute path, or "" for a blank path. If the working directory cannot be determined, it returns path cleaned.
func Within ¶
Within reports whether path is root or lies inside it. The comparison is lexical: both paths are cleaned, but symlinks are not resolved.
func WriteFileAtomic ¶
WriteFileAtomic replaces path with data. It writes and syncs a temporary file in the same directory, then renames it over path, so readers see either the old or the new content, never a partial write.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.