Commit aceb3ea2 authored by sim's avatar sim

[REFACT] Get rid of unused ensure_dir function

parent e4991ce1
...@@ -9,13 +9,3 @@ def convert_to_date(date): ...@@ -9,13 +9,3 @@ def convert_to_date(date):
return datetime.datetime.timestamp(date) return datetime.datetime.timestamp(date)
else: else:
return dateutil.parser.parse(date) return dateutil.parser.parse(date)
def ensure_dir(user):
'''
If user is new, folder does not exist yet, create it then
'''
dirpath = '%s/corpora/%s' % (MEDIA_ROOT, user.username)
if not os.path.exists(dirpath):
print("Creating folder %s" % dirpath)
os.makedirs(dirpath)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment