filesystem

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMountPoint

func IsMountPoint(path string) (bool, error)
func IsSymlink(tgt string) (bool, error)

IsSymlink - returns true if tgt is a mount point. A path is considered a mount point if: - directory exists and - it is a soft link and - the target path of the link exists. If tgt path does not exist, it returns an error if tgt path exists, but the source path tgt points to does not exist, it returns false without error.

func PathExists

func PathExists(path string) (bool, error)

PathExists checks if the given path exists on the host.

func Rmdir

func Rmdir(path string, force bool) error

func ValidatePathWindows

func ValidatePathWindows(path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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