def mkdir_and_move(original_file, dest_file):
    dirname = os.path.dirname(dest_file)
    if (not os.path.exists(dirname)):
        logger.debug('mkdir %s', dirname)
        os.makedirs(dirname)
    logger.debug('mv %s %s', original_file, dest_file)
    shutil.move(original_file, dest_file)
def mkdir_and_move(original_file, dest_file):
    dirname = os.path.dirname(dest_file)
    if (not os.path.exists(dirname)):
        logger.debug('mkdir %s', dirname)
        os.makedirs(dirname)
    logger.debug('mv %s %s', original_file, dest_file)
    shutil.move(original_file, dest_file)