'Saves URI to tracker file if one was passed to constructor.'

def _save_tracker_uri_to_file(self):

    if (not self.tracker_file_name):
        return
    f = None
    try:
        with os.fdopen(os.open(self.tracker_file_name, (os.O_WRONLY | os.O_CREAT), 384), 'w') as f:
            f.write(self.tracker_uri)
    except IOError as e:
        raise ResumableUploadException(("Couldn't    write    URI    tracker    file    (%s):    %s.\nThis    can    happenif    you're    using    an    incorrectly    configured    upload    tool\n(e.g.,    gsutil    configured    to    save    tracker    files    to    an    unwritable    directory)" % (self.tracker_file_name, e.strerror)), ResumableTransferDisposition.ABORT)
