dirs

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

dirs provides helpers for working with directories on the filesystem

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDirectory

func CheckDirectory(dirPath string, fileCheck func([]fs.DirEntry) bool) error

CheckDirectory checks if a directory exists and contains files. It returns an error if the directory is empty, doesn't exist, isn't a directory, or if there's an error reading it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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