filesys

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeFsOnDiskSecure

func MakeFsOnDiskSecure(root string) (filesys.FileSystem, error)

MakeFsOnDiskSecure returns a secure file system which asserts any paths it handles to be inside root.

Types

type ConstraintError

type ConstraintError struct {
	Op   string
	Path string
	Err  error
}

ConstraintError records an error and the operation and file that violated it.

func (*ConstraintError) Error

func (e *ConstraintError) Error() string

func (*ConstraintError) Unwrap

func (e *ConstraintError) Unwrap() error

Jump to

Keyboard shortcuts

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