Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-12-07 15:38:43 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-12-07 15:38:43 (GMT)
commiteef56d0baa67468069ed20e5ac2a4141e385711d (patch)
treebe2774071d1e030611b91aa39f2eefdca40ab40c
parent130de9e2febe51ea2a1538048fc4f5fe21e02ad1 (diff)
clear out the temp files
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@937 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
-rw-r--r--instance.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/instance.py b/instance.py
index 44a1642..b6cd961 100644
--- a/instance.py
+++ b/instance.py
@@ -36,8 +36,8 @@ class Instance:
def recreateTmp():
#todo: figure out how to have multiple spaces for my media
#problem is, if new instance is created, with this code, it clears the whole tmp directory!
- #if (os.path.exists(Instance.tmpPath)):
- # shutil.rmtree(Instance.tmpPath)
+ if (os.path.exists(Instance.tmpPath)):
+ shutil.rmtree(Instance.tmpPath)
if (not os.path.exists(Instance.tmpPath)):
os.makedirs(Instance.tmpPath)
@@ -45,7 +45,7 @@ def recreateTmp():
def recreateInstance():
#todo: figure out how to have multiple spaces for my media
#problem is, if new instance is created, with this code, it clears the whole tmp directory!
- #if (os.path.exists(Instance.tmpPath)):
- # shutil.rmtree(Instance.tmpPath)
+ if (os.path.exists(Instance.tmpPath)):
+ shutil.rmtree(Instance.tmpPath)
if (not os.path.exists(Instance.instancePath)):
os.makedirs(Instance.instancePath) \ No newline at end of file