Documentation ¶
Index ¶
- Constants
- func IsMacOS() bool
- func IsRoot() bool
- func IsVolumeExist(volumeDirName string) bool
- func ListExternalDisk() (map[string]string, error)
- func MakeVolumeDir() (string, error)
- func MountDisk(disk string, volumeDirName string) error
- func OpenVolumeDir(volumeDirName string) error
- func RemoveVolumeDir(volumeDirName string) error
- func UnmountDisk(volumeDirName string) error
Constants ¶
View Source
const FileSystem = "NTFS"
Variables ¶
This section is empty.
Functions ¶
func IsVolumeExist ¶
IsVolumeExist checks whether the given volume dir is exist or not
func ListExternalDisk ¶
ListExternalDisk return partition & volume from the external disk
func MakeVolumeDir ¶
MakeVolumeDir creates a folder on /Volumes to mount external disk partition A returned folder name will assigned using ULID format
func OpenVolumeDir ¶
OpenVolumeDir will open finder on the selected volume path
func RemoveVolumeDir ¶
RemoveVolumeDir removes the given directory on /Volumes path
func UnmountDisk ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.