def makedirs(directory):
    if os.path.isdir(directory):
        return
    if os.path.exists(directory):
        raise error.Error(('mkdir: File exists and is not a directory: %s' % directory))
    trace(('mkdir: %s' % directory))
    os.makedirs(directory)
def makedirs(directory):
    if os.path.isdir(directory):
        return
    if os.path.exists(directory):
        raise error.Error(('mkdir: File exists and is not a directory: %s' % directory))
    trace(('mkdir: %s' % directory))
    os.makedirs(directory)