fork/gdu

git clone https://git.julia.blue/fork/gdu

bingoohuangfeat: add --archive-browsing flag to show zip/jar files as dirs, add --collapse-path flag to for collapsing single-child directory chains (#434)516c421

master
719 B21 linesraw
1//go:build windows || plan9
2
3package device
4
5import "errors"
6
7// OtherDevicesInfoGetter returns info for other devices
8type OtherDevicesInfoGetter struct{}
9
10// Getter is current instance of DevicesInfoGetter
11var Getter DevicesInfoGetter = OtherDevicesInfoGetter{}
12
13// GetDevicesInfo returns result of GetMounts with usage info about mounted devices
14func (t OtherDevicesInfoGetter) GetDevicesInfo() (devices Devices, err error) {
15	return nil, errors.New("Only Linux platform is supported for listing devices")
16}
17
18// GetMounts returns all mounted filesystems
19func (t OtherDevicesInfoGetter) GetMounts() (devices Devices, err error) {
20	return nil, errors.New("Only Linux platform is supported for listing mount points")
21}