filesystem

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfExists added in v1.0.1

func CheckIfExists(fsPath string) bool

func GetFiles

func GetFiles(dir string) ([]string, error)

GetFiles returns a slice with the names of all files found under the directory provided. Only the file names are returned, not the full path.

func IsDir

func IsDir(fsPath string) (bool, error)

IsDir calls os.Stat for the path provided and then calls fileInfo.IsDir to check whether it is a directory. It returns a boolean and and error. True if the path is a directory, or false if the path is a file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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