def download_file(url, file_path, mkdir=False):
folder, fname = os.path.split(file_path)<EOL>return download_file_by_name(url, folder, fname, mkdir)<EOL>
Write a string of data to file.

    Args:
        url: A string to a valid URL.
        file_path: Full path to intended download location (e.g. c:/ladybug/testPts.pts)
        mkdir: Set to True to create the directory if doesn't exist (Default: False)