fileutils

package
v0.3.76-rc-3411e77 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDirectory

func IsDirectory(path string) (bool, error)

IsDirectory returns true if path points to an existing directory and false otherwise. Errors not satisfying errors.Is(err, fs.ErrNotExist) are passed on to the caller.

func IsFile

func IsFile(path string) (bool, error)

IsFile returns true if path points to an existing file and false otherwise. Errors not satisfying errors.Is(err, fs.ErrNotExist) are passed on to the caller.

func IsFileOrDirectory

func IsFileOrDirectory(path string) (bool, error)

IsFileOrDirectory returns true if path points to an existing file or directory and false otherwise. Errors not satisfying errors.Is(err, fs.ErrNotExist) are passed on to the caller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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