mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.: server item onTap when err occurs (#310)
This commit is contained in:
@@ -41,7 +41,6 @@ class Disk {
|
||||
}
|
||||
try {
|
||||
final dev = vals[0];
|
||||
// Some NAS may have mounted path like this `//192.168.1.2/`
|
||||
if (!_shouldCalc(dev)) continue;
|
||||
list.add(Disk(
|
||||
dev: dev,
|
||||
@@ -172,6 +171,7 @@ class DiskUsage {
|
||||
}
|
||||
}
|
||||
|
||||
// Some NAS may have mounted path like this `//192.168.1.2/`
|
||||
bool _shouldCalc(String dev) {
|
||||
if (dev.startsWith('/dev')) return true;
|
||||
if (dev.startsWith('//')) return true;
|
||||
|
||||
Reference in New Issue
Block a user