Determine if entries_dir is writable

This commit is contained in:
Stefan Ritter 2011-02-07 23:03:23 +01:00
parent c7ac70ff84
commit c46d219390

View File

@ -120,6 +120,9 @@ if not re.match("^.*\/$", blog_url):
if not os.path.exists(entries_dir):
errorpage("Directory \"%s\" does not exist!" % entries_dir)
if not os.access(entries_dir, os.W_OK):
errorpage("Directory \"%s\" is not writable!" % entries_dir)
if not os.path.exists(staticpages_dir):
errorpage("Directory \"%s\" does not exist!" % staticpages_dir)