Bug fix
authorJakob <jakob@jcornell.net>
Sat, 23 Nov 2019 07:09:49 +0000 (01:09 -0600)
committerJakob <jakob@jcornell.net>
Sat, 23 Nov 2019 07:09:49 +0000 (01:09 -0600)
fs.py

diff --git a/fs.py b/fs.py
index d641ef374ad5930b69b38d21b17abead3b15ab50..1c23b35ed2fe388e0883ea2bca8b09aa9dc86939 100644 (file)
--- a/fs.py
+++ b/fs.py
@@ -134,6 +134,7 @@ def join_content_path(path, content_doc):
                return child_path
        else:
                new_path = get_new_path(path, content_doc['title'])
+               new_path.mkdir(exist_ok = True)
                write_metadata(
                        new_path,
                        VersionInfo(bb_id = content_doc['id'], version = None),