From: Ronny Strutz Date: Wed, 9 Nov 2005 14:44:58 +0000 (+0000) Subject: add hddcount X-Git-Tag: 2.6.0~5402 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/a1e522271eb1a17930cdb0dddf11876e827f49a0 add hddcount --- diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index a6389770..b51d7a67 100644 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -169,6 +169,12 @@ class HarddiskManager: if hddNum > 8: break + def HDDCount(self): + cnt = 0 + for hd in self.hdd: + cnt = cnt + 1 + return cnt + def HDDList(self): list = [ ] for hd in self.hdd: