fsutil

package
v0.0.0-...-8ccd611 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 5 Imported by: 53

Documentation

Index

Constants

View Source
const FdatasyncSupported = true

Variables

This section is empty.

Functions

func AnonymousFile

func AnonymousFile(dir string) (*os.File, error)

Create a temporary file with the same semantics as ioutil.TempFile, but ensure that it is unlinked before returning so that it does not persist after the process exits.

Warning: this is not production-quality code, and should only be used for testing purposes. In particular, there is a race between creating and unlinking by name.

func Fdatasync

func Fdatasync(f *os.File) error

Call fdatasync on the supplied file.

REQUIRES: FdatasyncSupported is true.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL