do not put a link from the welcoXme page to the start.html if there is not a private directory

This commit is contained in:
Zooko O'Whielacronx 2007-12-17 18:35:59 -07:00
parent a983f6d60c
commit 36e8e4e561
1 changed files with 2 additions and 1 deletions

View File

@ -1336,7 +1336,8 @@ class Root(rend.Page):
def render_private_vdrive(self, ctx, data):
basedir = IClient(ctx).basedir
start_html = os.path.abspath(os.path.join(basedir, "private", "start.html"))
if os.path.exists(start_html):
basedir = IClient(ctx).basedir
if os.path.exists(start_html) and os.path.exists(os.path.join(basedir, "private", "my_private_dir.cap")):
return T.p["To view your personal private non-shared filestore, ",
"use this browser to open the following file from ",
"your local filesystem:",