Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

322 B
Raw Blame
//go:build !(netbsd && 386)

package rc

import "github.com/shirou/gopsutil/v4/disk"

// getMounts returns a slice of disk mount points
func getMounts() (mounts []string) {
	partitions, _ := disk.Partitions(false)
	for _, partition := range partitions {
		mounts = append(mounts, partition.Mountpoint)
	}
	return mounts
}