pkg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FileSystem = "NTFS"

Variables

This section is empty.

Functions

func IsMacOS

func IsMacOS() bool

IsMacOS detects whether the OS is macOS or not

func IsRoot

func IsRoot() bool

IsRoot detect whether this cli is run using root or not

func IsVolumeExist

func IsVolumeExist(volumeDirName string) bool

IsVolumeExist checks whether the given volume dir is exist or not

func ListExternalDisk

func ListExternalDisk() (map[string]string, error)

ListExternalDisk return partition & volume from the external disk

func MakeVolumeDir

func MakeVolumeDir() (string, error)

MakeVolumeDir creates a folder on /Volumes to mount external disk partition A returned folder name will assigned using ULID format

func MountDisk

func MountDisk(disk string, volumeDirName string) error

MountDisk mounts partition to the given volume dir name

func OpenVolumeDir

func OpenVolumeDir(volumeDirName string) error

OpenVolumeDir will open finder on the selected volume path

func RemoveVolumeDir

func RemoveVolumeDir(volumeDirName string) error

RemoveVolumeDir removes the given directory on /Volumes path

func UnmountDisk

func UnmountDisk(volumeDirName 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