filesystem

package
v0.0.0-...-4e67346 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) bool

Determines if the specified file or directory exists

Types

type DirEntryMap

type DirEntryMap map[string]fs.DirEntry

Represents a mapping from filenames to directory entry details

func ReadDirAsMap

func ReadDirAsMap(path string) (DirEntryMap, error)

Wraps `os.ReadDir()` to generate a new DirEntryMap object

func (DirEntryMap) Exists

func (m DirEntryMap) Exists(filename string) bool

Determines if the specified entry exists in the map

Jump to

Keyboard shortcuts

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