files

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllWithExtension

func AllWithExtension(ext string) ([]string, error)

AllWithExtension returns all file names with the extension 'ext' from the current working directory. They are returned relative to that directory

func AllWithExtensionExactlyInDir added in v0.0.35

func AllWithExtensionExactlyInDir(ext string, dir string) ([]string, error)

func AllWithExtensionInDir added in v0.0.61

func AllWithExtensionInDir(dir string, ext string) ([]string, error)

func DirectoriesInDirectory added in v0.0.60

func DirectoriesInDirectory(path string) ([]string, error)

DirectoriesInDirectory returns all directories inside a root path (not subdirectories)

func FileExists added in v0.0.18

func FileExists(path string) bool

func IsDir

func IsDir(pathFile string) bool

IsDir returns true if the given path is an existing directory.

Types

type Nameable added in v0.0.66

type Nameable interface {
	Name() string
}

Jump to

Keyboard shortcuts

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