Ticket #341: buildbot-ticket-341.patch

File buildbot-ticket-341.patch, 0.6 kB (added by gward, 4 months ago)

Patch to implement this feature (from mailing list; untested by me)

  • old-buildbot-trunk/buildbot/steps/transfer.py

    old new  
    1515    """ 
    1616 
    1717    def __init__(self, destfile, maxsize, mode): 
     18        # Create missing directories. 
     19        dirname = os.path.dirname(destfile) 
     20        if not os.path.isdir(dirname): 
     21            os.makedirs(dirname) 
     22 
    1823        self.destfile = destfile 
    1924        self.fp = open(destfile, "wb") 
    2025        if mode is not None: