[Buildbot-devel] FileUpload to distinct directory on master

Ted Zlatanov tzz at lifelogs.com
Wed Aug 27 15:02:12 UTC 2008


On Tue, 26 Aug 2008 16:49:32 -0700 (PDT) Jimmy John <jimmyj_in at yahoo.com> wrote: 

JJ>         #if the directory leading to the file does not exist, create them recursively
JJ>         dirname = os.path.dirname(destfile)
JJ>         if not os.path.isdir(dirname):
JJ>            os.makedirs(dirname)

Would this break if `dirname' was an existing file name?

Ted





More information about the devel mailing list