Remove spurious 'in' directory

This commit is contained in:
Jarno Seppänen 2014-05-18 12:36:22 +03:00
parent c6a8ce7daa
commit a20e459b97
1 changed files with 3 additions and 3 deletions

View File

@ -20,9 +20,9 @@ class GpgStore(object):
if not path: if not path:
path = hexlify(os.urandom(20)) path = hexlify(os.urandom(20))
path = path[:2] + '/' + path[2:] path = path[:2] + '/' + path[2:]
encdir = self.encroot + '/' + path[:2] encdir = self.encroot + '/' + path[:2]
if not os.path.exists(encdir): if not os.path.exists(encdir):
os.mkdir(encdir, 0755) os.mkdir(encdir, 0755)
res = self.gpg.encrypt(data, self.keyid, armor=False) res = self.gpg.encrypt(data, self.keyid, armor=False)
if not res.ok: if not res.ok:
log.error("encryption failed (keyid %s), %s: %s", log.error("encryption failed (keyid %s), %s: %s",