privatefs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package privatefs creates and checks files and directories only the current user may use: mode 0600/0700 and owned by the user on Unix, a protected current-user DACL on Windows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MkdirAll

func MkdirAll(path string) error

MkdirAll creates path and its missing parents with mode 0700 and checks that path itself is private.

func PrivateFile

func PrivateFile(_ string, info os.FileInfo) bool

PrivateFile reports whether info describes a regular file owned by the current user with no group or other permissions.

func ProtectDirectory

func ProtectDirectory(path string) error

ProtectDirectory checks that path is a directory owned by the current user with no group or other permissions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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