fileutil

package
v1.109.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(path string) (bool, error)

DirExists determines if the given path points to a directory that exists.

func FileNamesWithSuffixInDir

func FileNamesWithSuffixInDir(path, suffix string) (names []string, err error)

FileNamesWithSuffixInDir gets all the filenames in the directory at the given path which end with the given suffix.

func HasSubdirs

func HasSubdirs(path string) (bool, error)

HasSubdirs determines if a given path contains at least one subdirectory.

func NewEmptyFile

func NewEmptyFile(path string) (*os.File, error)

NewEmptyFile creates an empty file at the given path.

func SubdirsIn

func SubdirsIn(path string) ([]string, error)

SubdirsIn gets the names of subdirectories found in a given path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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