package
23.2.20+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

CleanupTempDirs removes all directories listed in the record file specified by recordPath.
CreateTempDir creates a temporary directory with a prefix under the given parentDir and returns the absolute path of the temporary directory.
CreateWithSync creates a file wrapped with logic to periodically sync whenever more than bytesPerSync bytes accumulate.
ReadFile reads data from a file named by filename.
RecordTempDir records tempPath to the record file specified by recordPath to facilitate cleanup of the temporary directory on subsequent startups.
SafeWriteToFile writes the byte slice to the filename, contained in dir, using the given fs.
WriteFile writes data to a file named by filename.