Function copyFileTo

  • Copy a file to some destination. In the options object, only one of source or content is needed.

    Parameters

    • destination: string
    • options: CopyOptions = {}

    Returns Promise<void>

    Example

    import { files } from 'ember-apply';

    await files.copyFileTo('destination/file.js', { source: 'source/file.js' });

    Example

    import { files } from 'ember-apply';

    await files.copyFileTo('destination/file.js', { content: 'file contents' });