diff options
| author | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-07-08 09:24:18 +0000 |
|---|---|---|
| committer | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-07-08 09:24:18 +0000 |
| commit | d6114b958a407cf3e7eedae85197521406a58ba2 (patch) | |
| tree | 31c017db03028380da272dd25a3ee1f70190b711 /lib/python/Plugins/Extensions/DVDBurn/Process.py | |
| parent | bdbf663b67d46f79ba2163f6b7df377a63218092 (diff) | |
| download | enigma2-d6114b958a407cf3e7eedae85197521406a58ba2.tar.gz enigma2-d6114b958a407cf3e7eedae85197521406a58ba2.zip | |
create & purge unique one-time temp directory for each burning job and
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDBurn/Process.py')
| -rw-r--r-- | lib/python/Plugins/Extensions/DVDBurn/Process.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/Process.py b/lib/python/Plugins/Extensions/DVDBurn/Process.py index 9163b8ae..5123ea5d 100644 --- a/lib/python/Plugins/Extensions/DVDBurn/Process.py +++ b/lib/python/Plugins/Extensions/DVDBurn/Process.py @@ -180,13 +180,17 @@ class RemoveDVDFolder(Task): def __init__(self, job): Task.__init__(self, job, "Remove temp. files") self.setTool("/bin/rm") - self.args += ["-rf", self.job.workspace + "/dvd"] + self.args += ["-rf", self.job.workspace] class DVDJob(Job): def __init__(self, cue): Job.__init__(self, "DVD Burn") self.cue = cue - self.workspace = "/media/hdd/tmp" + from time import strftime + from Tools.Directories import SCOPE_HDD, resolveFilename, createDir + new_workspace = resolveFilename(SCOPE_HDD) + "tmp/" + strftime("%Y%m%d%H%M%S") + createDir(new_workspace) + self.workspace = new_workspace self.fromDescription(self.createDescription()) def fromDescription(self, description): |
