mountutils

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsMountpoint

func ContainsMountpoint(filename string) (bool, error)

ContainsMountpoint returns true if the file is a mountpoint, or if the file is a directory that contains a mountpoint somewhere in it.

func IsMounted

func IsMounted(filename string) (bool, error)

IsMounted returns true if the file is located inside a mounted directory of the current filesystem, and false otherwise. Returns false on every file with no error if the mounts file was not found.

func IsMountpoint

func IsMountpoint(filename string) (bool, error)

IsMountpoint returns true if the file is a mountpoint, with an error if there was a problem reading the mountpoint information. Returns false on every file with no error if the mounts file was not found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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