Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
leap
soledad
Commits
681f87f8
Commit
681f87f8
authored
May 04, 2017
by
Victor
Browse files
[refactor] use mkdir_p from leap.common instead
parent
46c97877
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/src/leap/soledad/client/_database/blobs.py
View file @
681f87f8
...
...
@@ -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:
...
...
Victor
@shyba
mentioned in commit
a9580838
·
May 04, 2017
mentioned in commit
a9580838
mentioned in commit a9580838817c2fbc883253f6df0edc29fcd4c947
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment