Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added docs for if_different option #2186

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion reference/conanfile/methods.rst
Expand Up @@ -878,7 +878,7 @@ The ``self.copy()`` method inside ``imports()`` supports the following arguments

.. code-block:: python

def copy(pattern, dst="", src="", root_package=None, folder=False, ignore_case=True, excludes=None, keep_path=True)
def copy(pattern, dst="", src="", root_package=None, folder=False, ignore_case=True, excludes=None, keep_path=True, if_different=True)

Parameters:
- **pattern** (Required): An fnmatch file pattern of the files that should be copied.
Expand All @@ -896,6 +896,7 @@ Parameters:
copy, even if they match the main ``pattern``.
- **keep_path** (Optional, Defaulted to ``True``): Means if you want to keep the relative path when you copy the files from the **src**
folder to the **dst** one. Useful to ignore (``keep_path=False``) path of *library.dll* files in the package it is imported from.
- **if_different** (Optional, Defaulted to ``True``): If enabled, no copy will be performed if destination file already exist and it is the same as the source file.

Example to collect license files from dependencies:

Expand Down