diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-30 05:12:34 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-12-30 05:12:34 +0000 |
| commit | 21ad640445f0812c5fa954015a3389e4824dc5e1 (patch) | |
| tree | 858148d2874496e380cbe56ce70252106870cd17 /lib/python/Components | |
| parent | d4e7de836464117242bea65c7e192ff25dee2e46 (diff) | |
| download | enigma2-21ad640445f0812c5fa954015a3389e4824dc5e1.tar.gz enigma2-21ad640445f0812c5fa954015a3389e4824dc5e1.zip | |
the new hdd movie directory is /hdd/movie (for 7020 compatibility reasons)
if /hdd/movies is found and /hdd/movie doesn't exist, /hdd/movies is moved to /hdd/movie
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/Harddisk.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index ca77e56f..37e957e4 100644 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -1,5 +1,7 @@ import os +from Tools.Directories import * + def tryOpen(filename): try: procFile = open(filename) @@ -124,7 +126,7 @@ class Harddisk: return (res >> 8) def createMovieFolder(self): - res = os.system("mkdir /hdd/movies") + res = os.system("mkdir " + resolveFilename(SCOPE_HDD)) return (res >> 8) errorList = [ _("Everything is fine"), _("Creating partition failed"), _("Mkfs failed"), _("Mount failed"), _("Create movie folder failed"), _("Unmount failed")] |
