From: jamesbunton Date: Fri, 14 Jul 2006 12:39:37 +0000 (+0000) Subject: Use md5 hashes for spool dir. Moved avatar dir to root of spool dir. X-Git-Url: https://code.delx.au/pymsnt/commitdiff_plain/af33d472dd21d8f4228233cbb7be6254dfeb5729 Use md5 hashes for spool dir. Moved avatar dir to root of spool dir. git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@197 55fbd22a-6204-0410-b2f0-b6c764c7e90a committer: jamesbunton --- diff --git a/src/housekeep.py b/src/housekeep.py index eff8ab6..882e35c 100644 --- a/src/housekeep.py +++ b/src/housekeep.py @@ -155,7 +155,7 @@ def doMD5HashDirUpgrade(): if not os.path.exists(pre + hash): os.makedirs(pre + hash) shutil.move(pre2 + file, pre + hash + X + file) - os.rmdir(pre) + os.rmdir(pre2) except Exception, e: print "Error in migration", pre, dir, hash, file, str(e) sys.exit(1)