fileutils

package
v0.4.46 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 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