fs

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeIrregular = os.ModeIrregular
	ModeDir       = os.ModeDir
)

Variables

View Source
var (
	ErrNotExist = os.ErrNotExist
	SkipDir     = filepath.SkipDir
)

Functions

func ValidPath

func ValidPath(name string) bool

ValidPath reports whether the given path name is valid for use in a call to Open. Path names passed to open are unrooted, slash-separated sequences of path elements, like “x/y/z”. Path names must not contain a “.” or “..” or empty element, except for the special case that the root directory is named “.”.

Paths are slash-separated on all systems, even Windows. Backslashes must not appear in path names.

Types

type FileInfo

type FileInfo = os.FileInfo

type FileMode

type FileMode = os.FileMode

type PathError

type PathError = os.PathError

Jump to

Keyboard shortcuts

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