aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Harddisk.py
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-11-09 14:44:58 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-11-09 14:44:58 +0000
commita1e522271eb1a17930cdb0dddf11876e827f49a0 (patch)
tree2f084548beb61dc348cfdfca4b88f5936834cda8 /lib/python/Components/Harddisk.py
parentabc3df95272df099485bfe081dcb8acead013eab (diff)
downloadenigma2-a1e522271eb1a17930cdb0dddf11876e827f49a0.tar.gz
enigma2-a1e522271eb1a17930cdb0dddf11876e827f49a0.zip
add hddcount
Diffstat (limited to 'lib/python/Components/Harddisk.py')
-rw-r--r--lib/python/Components/Harddisk.py6
1 files changed, 6 insertions, 0 deletions
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: