Documentation
¶
Index ¶
- type APIImplementor
- func (APIImplementor) IsMountPoint(tgt string) (bool, error)
- func (APIImplementor) LinkPath(oldname, newname string) error
- func (APIImplementor) Mkdir(path string) error
- func (APIImplementor) PathExists(path string) (bool, error)
- func (APIImplementor) PathValid(path string) (bool, error)
- func (APIImplementor) Rmdir(path string, force bool) error
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
Click to show internal directories.
Click to hide internal directories.