Merge pull request #728 from fancybits/android-filesystems

ignore /proc/filesystems errors on android
pull/733/head
shirou 6 years ago committed by GitHub
commit 0bb41276be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,6 +10,7 @@ import (
"io/ioutil"
"os"
"path/filepath"
"runtime"
"strconv"
"strings"
@ -244,7 +245,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
}
fs, err := getFileSystems()
if err != nil {
if err != nil && all {
return nil, err
}

Loading…
Cancel
Save