Determine if entries_dir is writable
This commit is contained in:
parent
c7ac70ff84
commit
c46d219390
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user