fsutil

package
v0.149.4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package fsutil contains the small filesystem primitives shared by security-sensitive persistence code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenBoundedRegular added in v0.149.4

func OpenBoundedRegular(path string, limit int64) (*os.File, error)

OpenBoundedRegular opens only an existing regular file, read-only, checking both sides of open for replacement and refusing oversized inputs. On Unix a nonblocking open prevents a raced FIFO/device from hanging diagnostics.

func SyncDirectory

func SyncDirectory(path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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