Ignore getFileSystems errors when requesting all partitions

pull/728/head
Aman Gupta 6 years ago committed by GitHub
parent ea0f864aef
commit 34b030b41c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -245,7 +245,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
} }
fs, err := getFileSystems() fs, err := getFileSystems()
if err != nil && runtime.GOOS != "android" { if err != nil && all {
return nil, err return nil, err
} }

Loading…
Cancel
Save