<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def download_binaries(package_dir=False):
 """Download all binaries for the current platform Parameters package_dir: bool If set to `True`, the binaries will be downloaded to the `resources` directory of the qpsphere package instead of to the users application data directory. Note that this might require administrative rights if qpsphere is installed in a system directory. Returns ------- paths: list of pathlib.Path List of paths to binaries. This will always return binaries in the `resources` directory of the qpsphere package (if binaries are present there), in disregard of the parameter `package_dir`. """

    # bhfield
    # make sure the binary is available on the system
    paths = _bhfield.fetch.get_binaries()

    if package_dir:
        # Copy the binaries to the `resources` directory
        # of qpsphere.
        pdir = RESCR_PATH
        outpaths = []
        for pp in paths:
            target = pdir / pp.name
            if not target.exists():
                shutil.copy(pp, target)
            outpaths.append(target)
    else:
        outpaths = paths

    return outpaths