git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't crash if time is *really* invalid
[enigma2.git]
/
lib
/
python
/
Components
/
Harddisk.py
diff --git
a/lib/python/Components/Harddisk.py
b/lib/python/Components/Harddisk.py
index 09864fc9f374d72ef3be0f9499ec60d37e9989ed..37e957e41db8658d4980deec6acc1ce2849f70ae 100644
(file)
--- a/
lib/python/Components/Harddisk.py
+++ b/
lib/python/Components/Harddisk.py
@@
-1,5
+1,7
@@
import os
import os
+from Tools.Directories import *
+
def tryOpen(filename):
try:
procFile = open(filename)
def tryOpen(filename):
try:
procFile = open(filename)
@@
-124,12
+126,13
@@
class Harddisk:
return (res >> 8)
def createMovieFolder(self):
return (res >> 8)
def createMovieFolder(self):
- res = os.system("mkdir
/hdd/movies"
)
+ res = os.system("mkdir
" + resolveFilename(SCOPE_HDD)
)
return (res >> 8)
return (res >> 8)
+ errorList = [ _("Everything is fine"), _("Creating partition failed"), _("Mkfs failed"), _("Mount failed"), _("Create movie folder failed"), _("Unmount failed")]
+
def initialize(self):
def initialize(self):
- if self.unmount() != 0:
- return -5
+ self.unmount()
if self.createPartition() != 0:
return -1
if self.createPartition() != 0:
return -1