os

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDir

func EnsureDir(dir string, empty bool) (bool, error)

EnsureDir checks if the specified directory exists, and optionally verifies if it is empty. If the directory does not exist, it attempts to create it with 0755 permissions.

func IsDirEmpty

func IsDirEmpty(path string) (bool, error)

IsDirEmpty returns true if the directory at path is empty, false otherwise. Returns an error if the path does not exist or is not 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