summaryrefslogtreecommitdiff
path: root/client/src/leap
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-05-04 05:21:26 -0300
committerVictor Shyba <victor1984@riseup.net>2017-05-04 05:21:26 -0300
commit681f87f85820ed807b8df26271d47dab18da05bb (patch)
tree1f17becec88038083c503a0f4d8d63538e77536c /client/src/leap
parent46c97877f004abc44afb54c6876a7a2c217f63a2 (diff)
[refactor] use mkdir_p from leap.common instead
Diffstat (limited to 'client/src/leap')
-rw-r--r--client/src/leap/soledad/client/_database/blobs.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/client/src/leap/soledad/client/_database/blobs.py b/client/src/leap/soledad/client/_database/blobs.py
index da2711de..10b90c71 100644
--- a/client/src/leap/soledad/client/_database/blobs.py
+++ b/client/src/leap/soledad/client/_database/blobs.py
@@ -21,7 +21,6 @@ Clientside BlobBackend Storage.
from urlparse import urljoin
import binascii
-import errno
import os
import base64
@@ -36,6 +35,7 @@ from twisted.web.client import FileBodyProducer
import treq
from leap.soledad.common.errors import SoledadError
+from leap.common.files import mkdir_p
from .._document import BlobDoc
from .._crypto import DocInfo
@@ -135,16 +135,6 @@ class DecrypterBuffer(object):
return self.decrypter._end_stream(), real_size
-def mkdir_p(path):
- try:
- os.makedirs(path)
- except OSError as exc:
- if exc.errno == errno.EEXIST and os.path.isdir(path):
- pass
- else:
- raise
-
-
class BlobManager(object):
"""
Ideally, the decrypting flow goes like this: