Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/instance.py
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-01 19:23:17 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-01 19:23:17 (GMT)
commit4f0e2e3f80442f3697ebad8cc3a55a844b81015c (patch)
treee8c5cbbbfb05226403746e35f45f5d079dde7267 /instance.py
parent713999337f755484a3231f6830bb24e85d4e1ab0 (diff)
ext not recognized correctly in gplay
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@832 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'instance.py')
-rw-r--r--instance.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/instance.py b/instance.py
index 4f0115b..620f47e 100644
--- a/instance.py
+++ b/instance.py
@@ -31,8 +31,9 @@ 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)
-
- os.makedirs(Instance.tmpPath)
+ if (not os.path.exists(Instance.tmpPath)):
+ os.makedirs(Instance.tmpPath)
record.Record.log.debug("Instance.tmpPath:" + str(Instance.tmpPath)) \ No newline at end of file