fileutil

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathExists

func PathExists(path string) (bool, error)

PathExists reports whether the given path exists.

It returns (false, nil) if the path does not exist. If an error other than os.ErrNotExist occurs (for example, a permission error), it returns (false, err).

A return value of true indicates that the path exists and was successfully stat-ed, but does not distinguish between files and directories.

func ReadDirNames

func ReadDirNames(dirname string) ([]string, error)

ReadDirNames returns the names of all directory entries in the specified directory.

The order of the returned names is filesystem-dependent. If an error occurs while reading the directory, it may return a non-nil slice along with the error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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