comparison MoinMoin/action/AttachFile.py @ 1428:8a89649ab5f0

remove util.filesys.make[dD]irs - not needed any more due to os.umask() use
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 27 Aug 2006 01:20:15 +0200
parents f7f415cc1332
children 0d89219ff974
comparison
equal deleted inserted replaced
1427:5e4d0d49dd60 1428:8a89649ab5f0
59 if htdocs_access(request): 59 if htdocs_access(request):
60 # direct file access via webserver, from public htdocs area 60 # direct file access via webserver, from public htdocs area
61 pagename = wikiutil.quoteWikinameFS(pagename) 61 pagename = wikiutil.quoteWikinameFS(pagename)
62 attach_dir = os.path.join(request.cfg.attachments['dir'], pagename, "attachments") 62 attach_dir = os.path.join(request.cfg.attachments['dir'], pagename, "attachments")
63 if create and not os.path.isdir(attach_dir): 63 if create and not os.path.isdir(attach_dir):
64 filesys.makeDirs(attach_dir) 64 os.makedirs(attach_dir)
65 else: 65 else:
66 # send file via CGI, from page storage area 66 # send file via CGI, from page storage area
67 attach_dir = Page(request, pagename).getPagePath("attachments", check_create=create) 67 attach_dir = Page(request, pagename).getPagePath("attachments", check_create=create)
68 68
69 return attach_dir 69 return attach_dir