summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2019-05-20 12:10:22 +0100
committerRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2019-05-22 14:09:23 +0100
commit3d2a51b39cdf6e0ae415136d3c36ce09c68ec8ae (patch)
treec08e398353bbf2a40ab38e82adc258fe98f9740d
parente7dee9ed0049188f9541e36316c22d0e10a55818 (diff)
downloadbuildstream-raoul/983-cas-source-staging.tar.gz
utils.py: remove misleading documentationraoul/983-cas-source-staging
copy_files and link_files suggested that a single file path is a valid argument when it isn't.
-rw-r--r--src/buildstream/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/utils.py b/src/buildstream/utils.py
index ade593750..f509ce998 100644
--- a/src/buildstream/utils.py
+++ b/src/buildstream/utils.py
@@ -356,7 +356,7 @@ def copy_files(src, dest, *, filter_callback=None, ignore_missing=False, report_
"""Copy files from source to destination.
Args:
- src (str): The source file or directory
+ src (str): The source directory
dest (str): The destination directory
filter_callback (callable): Optional filter callback. Called with the relative path as
argument for every file in the source directory. The file is
@@ -395,7 +395,7 @@ def link_files(src, dest, *, filter_callback=None, ignore_missing=False, report_
"""Hardlink files from source to destination.
Args:
- src (str): The source file or directory
+ src (str): The source directory
dest (str): The destination directory
filter_callback (callable): Optional filter callback. Called with the relative path as
argument for every file in the source directory. The file is