fsutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(path string) (*os.File, error)

CreateFile creates a new file, truncating it if it already exists. It is equivalent to OpenFile with O_RDWR|O_CREATE|O_TRUNC flags and 0600 permissions (owner read/write only).

func OpenFile

func OpenFile(path string, flag int, perm os.FileMode) (*os.File, error)

OpenFile behaves like os.OpenFile, except that:

  1. Any missing parent directories in the path are created implicitly
  2. Ownership of the file (and any created parent directories) are set to match that of the nearest existing ancestor.

Types

This section is empty.

Jump to

Keyboard shortcuts

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