filesystem

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIImplementor

type APIImplementor struct{}

func New

func New() APIImplementor

func (APIImplementor) IsMountPoint

func (APIImplementor) IsMountPoint(tgt string) (bool, error)

IsMountPoint - returns true if its 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.

func (APIImplementor) LinkPath

func (APIImplementor) LinkPath(oldname, newname string) error

func (APIImplementor) Mkdir

func (APIImplementor) Mkdir(path string) error

func (APIImplementor) PathExists

func (APIImplementor) PathExists(path string) (bool, error)

func (APIImplementor) PathValid added in v0.2.0

func (APIImplementor) PathValid(path string) (bool, error)

PathValid determines whether all elements of a path exist

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/test-path?view=powershell-7

for a remote path, determines whether connection is ok

e.g. in a SMB server connection, if password is changed, connection will be lost, this func will return false

func (APIImplementor) Rmdir

func (APIImplementor) Rmdir(path string, force bool) error

Jump to

Keyboard shortcuts

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