directory

package
v0.0.0-...-2a2181e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AllFilter = "^*.*"

Variables

This section is empty.

Functions

func DirNames

func DirNames(directoryPath string) ([]string, error)

DirNames function to get list file directory.

func Empty

func Empty(path string) bool

Empty function to check a directory is empty or not.

func Exist

func Exist(directoryPath string) bool

Exist function to check a filePath is exists.

func FileNames

func FileNames(directoryPath string) ([]string, error)

FileNames function to get list file name on directory.

func FileNamesWithFilter

func FileNamesWithFilter(directoryPath, filter string, fn func(path string, info fs.FileInfo) bool) ([]string, error)

FileNamesWithFilter function to get list file name with regex filter on directory.

func Make

func Make(path string) error

Make function to create a directory.

func Pwd

func Pwd() string

Pwd function to get current active directory.

func Remove

func Remove(path string) error

Remove function to remove a directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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