def _copy_file(src_file, dest_file, hide_listing=True):
    'Copy ``src_file`` to ``dest_file`` ensuring parent directory exists.\n\n    By default, message like `creating directory /path/to/package` and\n    `copying directory /src/path/to/package -> path/to/package` are displayed\n    on standard output. Setting ``hide_listing`` to False avoids message from\n    being displayed.\n    '
    dest_dir = os.path.dirname(dest_file)
    if ((dest_dir != '') and (not os.path.exists(dest_dir))):
        if (not hide_listing):
            print('creating directory {}'.format(dest_dir))
        mkdir_p(dest_dir)
    if (not hide_listing):
        print('copying {} -> {}'.format(src_file, dest_file))
    copyfile(src_file, dest_file)
    copymode(src_file, dest_file)
Copy ``src_file`` to ``dest_file`` ensuring parent directory exists.

By default, message like `creating directory /path/to/package` and
`copying directory /src/path/to/package -> path/to/package` are displayed
on standard output. Setting ``hide_listing`` to False avoids message from
being displayed.
def _copy_file(src_file, dest_file, hide_listing=True):
    'Copy ``src_file`` to ``dest_file`` ensuring parent directory exists.\n\n    By default, message like `creating directory /path/to/package` and\n    `copying directory /src/path/to/package -> path/to/package` are displayed\n    on standard output. Setting ``hide_listing`` to False avoids message from\n    being displayed.\n    '
    dest_dir = os.path.dirname(dest_file)
    if ((dest_dir != ) and (not os.path.exists(dest_dir))):
        if (not hide_listing):
            print('creating directory {}'.format(dest_dir))
        mkdir_p(dest_dir)
    if (not hide_listing):
        print('copying {} -> {}'.format(src_file, dest_file))
    copyfile(src_file, dest_file)
    copymode(src_file, dest_file)