dirs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 5 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) error) 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.

func CheckFreeSpace added in v1.0.0

func CheckFreeSpace(folder string, minGB uint64) error

func GetFreeSpaceOnFileSystem added in v1.0.0

func GetFreeSpaceOnFileSystem(folder string) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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