Added Media, Picture and Text file parsers

This commit is contained in:
simon987
2018-03-23 14:02:56 -04:00
parent b94fce4e0b
commit a8b5e0b76e
19 changed files with 613 additions and 25 deletions

3
run.py
View File

@@ -8,7 +8,7 @@ app = Flask(__name__)
app.secret_key = "A very secret key"
storage = LocalStorage("local_storage.db")
# tm = TaskManager(storage)
tm = TaskManager(storage)
@app.route("/")
@@ -32,6 +32,7 @@ def directory_add():
d = Directory(path, True, [], name)
try:
d.set_default_options()
storage.save_directory(d)
flash("<strong>Created directory</strong>", "success")
except DuplicateDirectoryException: